x11: Add support for a new _GTK_SHOW_WINDOW_MENU request

To show the window menu from a client-side decoration.
This commit is contained in:
Jasper St. Pierre 2014-03-13 17:13:22 -04:00
parent f38c1f6ab4
commit 50b81fe4b9
3 changed files with 7 additions and 0 deletions

View File

@ -297,6 +297,7 @@ set_supported_hint (MetaScreen *screen)
#undef EWMH_ATOMS_ONLY #undef EWMH_ATOMS_ONLY
screen->display->atom__GTK_FRAME_EXTENTS, screen->display->atom__GTK_FRAME_EXTENTS,
screen->display->atom__GTK_SHOW_WINDOW_MENU,
}; };
XChangeProperty (screen->display->xdisplay, screen->xroot, XChangeProperty (screen->display->xdisplay, screen->xroot,

View File

@ -62,6 +62,7 @@ item(_GTK_WINDOW_OBJECT_PATH)
item(_GTK_APP_MENU_OBJECT_PATH) item(_GTK_APP_MENU_OBJECT_PATH)
item(_GTK_MENUBAR_OBJECT_PATH) item(_GTK_MENUBAR_OBJECT_PATH)
item(_GTK_FRAME_EXTENTS) item(_GTK_FRAME_EXTENTS)
item(_GTK_SHOW_WINDOW_MENU)
item(_GNOME_WM_KEYBINDINGS) item(_GNOME_WM_KEYBINDINGS)
item(_GNOME_PANEL_ACTION) item(_GNOME_PANEL_ACTION)
item(_GNOME_PANEL_ACTION_MAIN_MENU) item(_GNOME_PANEL_ACTION_MAIN_MENU)

View File

@ -2726,6 +2726,11 @@ meta_window_x11_client_message (MetaWindow *window,
meta_window_update_fullscreen_monitors (window, top, bottom, left, right); meta_window_update_fullscreen_monitors (window, top, bottom, left, right);
} }
else if (event->xclient.message_type ==
display->atom__GTK_SHOW_WINDOW_MENU)
{
meta_window_show_menu (window);
}
return FALSE; return FALSE;
} }