Re: proposal for a smarter behavior for raising windows on mouse click



On Tue, 2004-01-27 at 12:02, Martin Grimme wrote:

> Imagine the following scenario:
> - user clicks on scrollbar arrow
> - scrollbar knows that it should not raise the window
> - scrollbar sets _NET_WM_DONT_RAISE on its toplevel window
> - window manager detects the mouse click and checks for the
>   flag
> - window manager takes action depending on whether the flag is set
>   or not and unsets the flag
> 
> (In case that mouse clicks reach the window manager before they reach
> the widget, the window manager may check for raising in an
> idle handler.)

The window manager will get the ButtonPress event first, as many window
managers put input-only windows over client windows when these don't
have the input focus.

You cannot have the window manager re-check in the idle loop because X
is asynchronous; the event loops of clients and the window manager have
absolutely nothing to do with each other.

You would need a well-defined protocol that the WM can use to ask a
client whether it should raise a window after a ButtonPress event.

  Federico




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