Proposal to add 'raise' and 'lower' to xdg-shell in wayland-protocols

Adam Goode agoode at google.com
Wed Nov 30 19:44:43 UTC 2016


On Wed, Nov 30, 2016 at 12:17 PM, Bill Spitzak <spitzak at gmail.com> wrote:

> On Wed, Nov 30, 2016 at 9:04 AM, Adam Goode <agoode at google.com> wrote:
> > Hi,
> >
> > See https://bugzilla.redhat.com/show_bug.cgi?id=1349225 and
> > https://bugzilla.gnome.org/show_bug.cgi?id=767967
> >
> > When using Client Side Decorations, toolkits cannot bind raise or lower
> to
> > user actions. This binding is traditionally used in the "middle click
> > titlebar to lower" action, which no longer works with CSD on Wayland.
> > Additionally, when click-to-raise is disabled, a click on a CSD titlebar
> > will not raise the window.
> >
> > I would like to add 'raise' and 'lower' to xdg-shell. These requests will
> > take no arguments, similarly to 'set_maximized' (which is commonly bound
> to
> > double-click titlebar).
> >
> > Is there any objection to adding these to xdg-shell, or should I
> investigate
> > another solution?
>
> My preferred solution to this:
>
> Click in the titlebar should be sent back from the client to the
> compositor as a wl_shell_surface::move (or ::resize) request. The
> compositor can then realize the middle mouse button was pressed and
> implement lower.
>

Wow, that's clever. If that works, I'd also like to move the double-click
on titlebar to the same mechanism too (because you can bind 'lower' to that
as well). Does that make sense?



Thanks,

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20161130/d12eb2aa/attachment.html>


More information about the wayland-devel mailing list