Set-visible without grabbing a focus

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Set-visible without grabbing a focus

Post by Dmi »

Can the new GS window be drawed on the top of the screen, but not focused?

I.e. as "background process" that not interrupts the user's current work with other applications and keyboard.
WBR, Dmi

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

An already running GS application can pop up a window without grepping focus. I don't know what happens if a GS app is started by another program not by a user (when it would grep focus).

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

depends on the desktopmanager or WM you are using. For windows there is probably a trick in the REGS for this.. For unix you can overrule this from within 'Xdefaults' file ircc..Like "focus new window" or "Raise when popup"etc..
-- (define? (Cornflakes))

Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Post by Dmi »

Lutz wrote:An already running GS application can pop up a window without grepping focus. I don't know what happens if a GS app is started by another program not by a user (when it would grep focus).
My case is when GS-app is already running. But how can it be done? - I didn't found in manual.
WBR, Dmi

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

There is nothing you have to do. When a newLISP-GS application is running, and a second application has focus, and suddenly the newLISP-GS app is popping up a window, the window will not grep the focus, but the focus will stay in the second application.

Lutz

Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Post by Dmi »

Thanks!

gs:window works fine in linux and win.
WBR, Dmi

Locked