summaryrefslogtreecommitdiff
path: root/src/core/window-private.h
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-08-14 14:04:18 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-08-14 14:04:18 +0300
commitaf0bbded4856cf7c81dc81b8313b4034f5b19d06 (patch)
treeaef46857fc47cc4af115a9b495d1a1001d55cc84 /src/core/window-private.h
parent11725dc5043f8b63cba462894af848e26e6b409e (diff)
downloadmetacity-af0bbded4856cf7c81dc81b8313b4034f5b19d06.tar.gz
menu: change event parameter back to timestamp
Commit 37fa0d19f35a replaced gtk_menu_popup with gtk_menu_popup_at_rect to avoid deprecated warning making it more complicated then needed. gtk_menu_popup_at_rect requires two parameters that are not always available. For example we don't have GdkWindow for CSD windows. And next commit will popup menu in response of ClientMessage event where we don't have any info about key and/or button press events. Simplify code by creating fake event in menu.c with minimal data needed for gtk_menu_popup_at_rect. GdkEvent is used to get GdkDevice, button and time. For GdkWindow we can use root window.
Diffstat (limited to 'src/core/window-private.h')
-rw-r--r--src/core/window-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h
index f3ab63d8..faa546c7 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -601,7 +601,7 @@ unsigned long meta_window_get_net_wm_desktop (MetaWindow *window);
void meta_window_show_menu (MetaWindow *window,
const GdkRectangle *rect,
- const GdkEvent *event);
+ guint32 timestamp);
gboolean meta_window_titlebar_is_onscreen (MetaWindow *window);
void meta_window_shove_titlebar_onscreen (MetaWindow *window);