[gtk+/wip/mir2: 296/310] mir: reset cursor_inside on hide/withdraw
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir2: 296/310] mir: reset cursor_inside on hide/withdraw
- Date: Thu, 5 Feb 2015 16:23:31 +0000 (UTC)
commit a24cf4ce1c6345e41070d1f2cea0059549d18d5d
Author: William Hua <william attente ca>
Date: Thu Dec 4 10:03:40 2014 -0500
mir: reset cursor_inside on hide/withdraw
Without this, we generate incorrect crossing events for transient
windows.
gdk/mir/gdkmirwindowimpl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index dac989c..eb90f7e 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]