! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window menu in windows with client-side decorations (GTK+ >= 3.14)
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Stefan Stuhr 2015-02-24 09:53:17 CET
When using GTK+ applications with client-side decorations in xfwm4, and right clicking on the GtkHeaderBar, the menu shown is provided by GTK+.

In GTK+ 3.14, this menu have one item, "Close".

GTK+ 3.14 can, however, request that the window manager show it's own menu instead.  Adding support for this in xfwm4 would improve the experience when using GTK+ 3 applications with client-side decorations.

GTK+ uses the following Gdk function to support this:
gdk_window_show_window_menu
https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-show-window-menu

From the link:
> Asks the windowing system to show the window menu. The window menu is
> the menu shown when right-clicking the titlebar on traditional windows
> managed by the window manager. This is useful for windows using
> client-side decorations, activating it with a right-click on the
> window decorations.
Comment 1 Olivier Fourdan editbugs 2015-02-24 22:40:19 CET
Fixed with git commit 75e9500
Comment 2 Stefan Stuhr 2015-02-24 22:56:42 CET
(In reply to Olivier Fourdan from comment #1)
> Fixed with git commit 75e9500

That was quick! The only issue is that the y coordinate of the menu is off.  And - when the client-side decorated window has a GTK+ theme-provided shadow - the x coordinate when opening the window menu with keyboard shortcut.
Comment 3 Olivier Fourdan editbugs 2015-02-26 22:18:33 CET
ah right, positioning fixed with commit 72992dd

Bug #11590

Reported by:
Stefan Stuhr
Reported on: 2015-02-24
Last modified on: 2015-02-26

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information