<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Le 07/05/2020 à 11:15, Carsten Haitzler
      (The Rasterman) a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:20200507101541.d96d614b61c3379b44998912@rasterman.com">
      <blockquote type="cite" style="color: #000000;">
        <pre class="moz-quote-pre" wrap="">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?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">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).</pre>
    </blockquote>
    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?<br>
    <blockquote type="cite"
      cite="mid:20200507101541.d96d614b61c3379b44998912@rasterman.com">
      <pre class="moz-quote-pre" wrap="">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.</pre>
    </blockquote>
    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).<br>
    <blockquote type="cite"
      cite="mid:20200507101541.d96d614b61c3379b44998912@rasterman.com">
      <pre class="moz-quote-pre" wrap="">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.
</pre>
    </blockquote>
    We can't just steal every middle-click everywhere on the window. It
    has to be on the title bar.<br>
  </body>
</html>