Re: Client messages _NET_WM_SHOW_WINDOW_MENU and _NET_WM_PERFORM_BUTTON_ACTION



On Tue, 01 Jul 2014 10:40:04 +0200 Martin Gräßlin <mgraesslin kde org> said:

thanks for the feedback. Addressed both and new patches attached.

i think that's missing lots of data, and background.

looking at this, my guess is that this is for client-side decorations. but then
you are missing lots of data.

1. for wm window menu, not just x,y but also the rectangle withint he client
window that triggered the action should be supplied. this allows the menu to be
aligned right below the button that triggered it. nice and cleanly. without
this info the menu has no choice but to appear where the mouse is which may be
anywhere inside the button/widget that was clicked

2. button action gives no hint as to what the action might be. example - we
double-clikc the titlebar. in some wm's this shades/unshades the window. in
others it maximizes/unmaximizes. the info here provides no information that
would indicate to the wm that we double-clicked the titlebar as titlebar may be
along the left side of the window or along the bottom. no idea.

Cheers
Martin

On Monday 30 June 2014 11:38:37 Jasper St. Pierre wrote:
For _NET_WM_PERFORM_BUTTON_ACTION, should these be used for left-clicking
to start moving and resizing? We would have to specify the different corner
regions, so no, I don't think so. You should probably mention that this is
for clicking on the titlebar only (maybe even change the name to
PERFORM_TITLEBAR_ACTION perhaps?).

_NET_WM_WINDOW_MENU looks fine to me, but maybe add a timestamp field for
good measure? You can never go wrong with an extra timestamp field.

On Mon, Jun 30, 2014 at 10:13 AM, Martin Gräßlin <mgraesslin kde org> 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
_______________________________________________
wm-spec-list mailing list
wm-spec-list gnome org
https://mail.gnome.org/mailman/listinfo/wm-spec-list

--
  Jasper


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster rasterman com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]