Opening a window without activating it

Harald Braumann harry at unheit.net
Sun May 16 04:06:17 PDT 2010


On Sun, May 16, 2010 at 11:42:59AM +0200, Andreas Falkenhahn wrote:
> Hi,
> 
> is it possible to open a window without it automatically becoming active?
> I see that there are two different calls to map a window: XMapWindow() and
> XMapRaised(). However, both calls open the window and make it active. Can
> I change this behaviour? I'd like to open a window and prevent it from
> taking away user focus.

That's really the responsibility of the window manager. Maybe you can
set certain window properties or WM hints to prevent the WM from
giving focus to the new window. Check out EWMH[0].

Cheers,
harry

[0] http://www.freedesktop.org/wiki/Specifications/wm-spec



More information about the xorg mailing list