Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-12-16 15:16:26

flego
Member
Registered: 2007-12-16
Posts: 2

set "always on top" window property from a script

Hi all!
I'm not sure is the right place to ask this question, but I can't find any help elsewhere! sad
I'd like to open an image from a script and to make the window to stay always on top.

For this first I display the image:

> display image.jpg

Then I find the window id

> xwininfo -root -tree |grep image.jpg

If I set and unset the 'always on top' property manually (using the mouse) the only difference I can observe among the window properties is:

_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE
_NET_WM_STATE(ATOM) =

But if try to set it by the command line as follows:

> xprop -id 0x3000011 -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_ABOVE

And then I query the window properties

> xprop -id 0x3000011 |grep _NET_WM_STATE

I can actually observe the property was set

_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE

but the window doesn't stay 'always on top'.


Does anybody knows how to solve this?
Thank you so much!

Federico.

Offline

#2 2007-12-18 15:49:50

flego
Member
Registered: 2007-12-16
Posts: 2

Re: set "always on top" window property from a script

For example, if I want a running application not to be listed in the taskbar within the task list, I can use the following:

> xeyes& xprop -name xeyes -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_SKIP_TASKBAR

And this works perfectly... the problem is, as I wrote in the previous post, I cannot set the '_NET_WM_STATE_ABOVE' property, that is, I can set it, but it has no effect on the window... sad

Can anybody give me any hint on how to solve this?

Thanxxx

Federico.

Offline

Board footer

Powered by FluxBB