[virt-tools-list] [PATCH virt-viewer] Disable CSD to avoid rendering issues
Daniel P. Berrange
berrange at redhat.com
Tue Aug 9 14:12:44 UTC 2016
On Tue, Aug 09, 2016 at 04:09:15PM +0200, Pavel Grunt wrote:
> Due to recent changes in gtk+ the content of window is not rendered
> properly in Windows 10 when the client side decorations are used.
>
> It is possible to disable the client side decorations using
> the GTK_CSD="0" environment variable.
>
> Keep them disabled to avoid issues.
>
> Related:
> https://bugzilla.redhat.com/show_bug.cgi?id=1352216
Can you provide the actual GTK bug report for this issue.
> ---
> I know it is not a solution. virt-viewer should learn to work properly with CSD
> ---
> src/virt-viewer-util.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
> index 0491f73..1b0335d 100644
> --- a/src/virt-viewer-util.c
> +++ b/src/virt-viewer-util.c
> @@ -295,6 +295,8 @@ void virt_viewer_util_init(const char *appname)
> }
> }
> #endif
> + /* FIXME: avoid rendering issues with csd - used by default in Win10*/
> + g_setenv("GTK_CSD", "0", TRUE);
At the version least you should make this hidden behind G_OS_WIN32,
even better if you can make it only happen on Win10 at runtime.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the virt-tools-list
mailing list