Re: proposal for a smarter behavior for raising windows on mouse click
- From: Federico Mena Quintero <federico ximian com>
- To: Martin Grimme <martin pycage de>
- Cc: GNOME Desktop <desktop-devel-list gnome org>, wm-spec-list gnome org
- Subject: Re: proposal for a smarter behavior for raising windows on mouse click
- Date: Wed, 28 Jan 2004 12:14:28 -0600
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]