[gtk/wip/matthiasc/popup4: 84/94] window: Ignore events for other surfaces
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 84/94] window: Ignore events for other surfaces
- Date: Sat, 27 Apr 2019 04:48:28 +0000 (UTC)
commit 3ef489aa456799d4649e67807a4cfebab941fa39
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 27 02:00:09 2019 +0000
window: Ignore events for other surfaces
We don't want to set resize cursors on popovers.
The underlying issue here is that we don't translate
the coordinates between surfaces. For now, just
ignore these events.
gtk/gtkwindow.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2502cdfabc..74d032313b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1768,6 +1768,13 @@ gtk_window_capture_motion (GtkWidget *widget,
"w-resize", "e-resize",
"sw-resize", "s-resize", "se-resize"
};
+ GdkEvent *event;
+ GdkSurface *surface;
+
+ event = gtk_get_current_event ();
+ surface = gdk_event_get_surface (event);
+ if (surface != _gtk_widget_get_surface (widget))
+ return;
for (i = 0; i < 8; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]