Hi, I tried to incorporate the feedback and attached is a new version. My aim is to keep this extension simple, so that window managers are going to implement it. There is no use if that gets that complex, that nobody implements it ;-) Changes: * Added that in case a menu button is clicked also better suited values should be used, but not the complete rect added [1] * Renamed _NET_WM_PERFORM_BUTTON_ACTION to _NET_WM_TITLEBAR_ACTION * Made it more clear that _NET_WM_TITLEBAR_ACTION is about the title bar and not about buttons * Made it more clear that it's up to the WM on how to react on the client message including ignoring and that it's not the client's business what happens * Added special button value 0 to indicate a double click. Cheers Martin [1] If this is really needed I suggest to add another property which provides the coordinates of the menu button to not carry it in the client message. On Monday 30 June 2014 16:13:10 Martin Gräßlin wrote:
Hi all, attached are two patches for the NETWM spec. One message is to show the window manager's window menu, the other is for passing the responsibility to perform a button action from the client to the window manager. For detailed information please have a look on the attached patches. The need for these two client messages were derived by GTK+ and KWin developers for better integrating GTK's new client-side-decorated windows in environments which are not GNOME Shell. KWin will add support for those two new hints and it looks like GTK+ and Mutter will also support them. I would like to hear your feedback on them for inclusion into the NETWM spec. Best Regards Martin Gräßlin
Attachment:
0001-_NET_WM_SHOW_WINDOW_MENU.patch
Description: Text Data
Attachment:
0002-_NET_WM_TITLEBAR_ACTION.patch
Description: Text Data
Attachment:
signature.asc
Description: This is a digitally signed message part.