[Top][All Lists]

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

bug#745: pop-to-buffer, frames, and input focus

From: Helmut Eller
Subject: bug#745: pop-to-buffer, frames, and input focus
Date: Fri, 29 Aug 2008 17:02:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

* martin rudalics [2008-08-29 11:26+0200] writes:

>> Emacs could first test whether the window manager is EWMH compliant
> How?  Emacs can't even test whether the window manager is click to focus
> or focus follows mouse.

xterm.c:wm_supports implements the test already.  By inspecting the
_NET_SUPPORTED property on the root window.  A compliant window manager
must enumerate the supported features there.

See http://standards.freedesktop.org/wm-spec/1.4/ar01s03.html#id2523263.

E.g. for Sawfish I get

shell$ xprop _NET_SUPPORTED

>> I also found the gtk_window_set_focus_on_map function.  This seems to
>> rely on the _NET_WM_USER_TIME EWMH.  Sawfish ignores _NET_WM_USER_TIME,
>> but it could be useful for other window managers.
> And this would have to be supplied by the user separately.  Or is there
> some way to get such basic information from window-managers?

For a window manager which supports it, _NET_SUPPORTED will contain
_NET_WM_USER_TIME.  But it wouldn't hurt to set _NET_WM_USER_TIME to 0,
because that should be interpreted as "disable focus-on-map".  At least
gtk_window_set_focus_on_map sets the property unconditionally.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]