summaryrefslogtreecommitdiff
path: root/src/xwidget.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-28 10:41:03 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-28 10:41:03 +0800
commit8471c6f06c611dc9853eeb9508dff9844c75df6e (patch)
tree8e0a4561c3de3b682343a33d831e0d10791bdbaf /src/xwidget.h
parent8eaf04de83fd967c2ab69a4c1dfe44a6a10aa912 (diff)
downloademacs-8471c6f06c611dc9853eeb9508dff9844c75df6e.tar.gz
Implement xwidget passive grabs
* src/xwidget.c (find_widget_at_pos): New parameters for controlling whether to respect grabs. All callers changed. (window_coords_from_toplevel): Make work when the widget is the toplevel. (find_widget): Fix coding style. (xwidget_button_1): Set and clear passive grabs if appropriate. (xw_maybe_synthesize_crossing): Allow current_window to be NULL if the mode is XW_CROSSING_LEFT.
Diffstat (limited to 'src/xwidget.h')
-rw-r--r--src/xwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xwidget.h b/src/xwidget.h
index 5f05a5f59d4..79dee37695d 100644
--- a/src/xwidget.h
+++ b/src/xwidget.h
@@ -120,6 +120,8 @@ struct xwidget_view
Window wdesc;
GdkWindow *last_crossing_window;
+ GtkWidget *passive_grab;
+ guint passive_grab_destruction_signal;
#else
struct pgtk_display_info *dpyinfo;
GtkWidget *widget;