Commit 5ac5f6f8 authored by William Hua's avatar William Hua

mir: reset cursor_inside on hide/withdraw

Without this, we generate incorrect crossing events for transient
windows.
parent 8e0abb4b
......@@ -446,6 +446,7 @@ gdk_mir_window_impl_hide (GdkWindow *window)
//g_printerr ("gdk_mir_window_impl_hide window=%p\n", window);
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
impl->cursor_inside = FALSE;
impl->visible = FALSE;
ensure_no_surface (window);
......@@ -459,6 +460,7 @@ gdk_mir_window_impl_withdraw (GdkWindow *window)
//g_printerr ("gdk_mir_window_impl_withdraw window=%p\n", window);
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
impl->cursor_inside = FALSE;
impl->visible = FALSE;
ensure_no_surface (window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment