[Spice-devel] [PATCH spice-gtk] widget: Fix rendering issues with CSD on Windows

Fabiano FidĂȘncio fabiano at fidencio.org
Fri Aug 12 22:10:54 UTC 2016


On Fri, Aug 12, 2016 at 11:38 PM, Pavel Grunt <pgrunt at redhat.com> wrote:
> Replace GDK_WINDOW_HWND by gdk_win32_window_get_impl_hwnd() which gets
> the HWND directly, without any side effects.
>
> Related:
> https://bugzilla.redhat.com/show_bug.cgi?id=1352216
> ---
>  src/spice-widget.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index 7c1c756..ae56d1b 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -1417,7 +1417,7 @@ static gboolean check_for_grab_key_released(SpiceDisplay *display, int type, int
>  static void update_display(SpiceDisplay *display)
>  {
>  #ifdef G_OS_WIN32
> -    win32_window = display ? GDK_WINDOW_HWND(gtk_widget_get_window(GTK_WIDGET(display))) : NULL;
> +    win32_window = display ? gdk_win32_window_get_impl_hwnd(gtk_widget_get_window(GTK_WIDGET(display))) : NULL;
>  #endif
>  }
>
> --
> 2.9.2
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

ACK!

(PS: And this patch must be backported to the mingw-spice-gtk on Fedora).

Best Regards,
-- 
Fabiano FidĂȘncio


More information about the Spice-devel mailing list