Le 07/05/2020 à 11:15, Carsten Haitzler (The Rasterman) a écrit :
I suppose that the client can declare the title bar area, and the
compositor can then handle clicks in this area. is there something like
that already existing? Is there anything that has prevented to do this
before?
So you want this to only happen when middle-clicking in the titlebar? Then it
does require the client to deal with it as only it knows precisely the things
in a titlebar that are the titlebar (and not other buttons too like close and
what not, and tyring to expose all of this to the compositor to deal with
just is endlessly complex).
That's why I was thinking that there should be a protocol to let clients
know where the titlebar area is. Reading past mails, I believe this
should allow the titlebar to be non rectangular. I saw that there was an
idea of a mask the client sends to the server. Was it rejected for some
reason or was it just never implemented?
So what you need really is clients deal with this. That means every toolkit
and/or app will have to follow suit and do it too.
This is the other solution, but how do all the clients know it's middle
click to lower? How do they know it's not middle-click and not
double-click? How do they know it's lower and not to minimize or
maximize? We can't reasonably ask every wayland client to look at GNOME
configuration files (and every other window manager for that matter).
If you want middle-mouse anywhere to do this (like alt+left mouse drag is
seconded anywhere to move a window). then the compositor can do this with
clients being ignorant of it happening.
We can't just steal every middle-click everywhere on the window. It has
to be on the title bar.
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel