You are not logged in.
Pages: 1
Hi,
Is there a way to place a window above (and also below) others windows without setting an "always above" / "always below" mode?. In the latter mode it will obscure newer windows which are opened/raised.
I'd like to do this programmatically.
Thanks
Offline
You can use wmctrl for that:
wmctrl -ri WINDOW_ID -b toggle,above
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thanks, but that's what I'm already using & it doesn't work: the "above" option causes the window to be always on top of others, so if a new window is opened it's fully/partially hidden.
What I'm looking for is a way to place a window once at the top of the window stack, not permanently.
Offline
You can toggle the above state off once the window loses focus.
The window stacking is saved in the _NET_CLIENT_LIST_STACKING property. Perhaps you can try rearranging them within your script with the help of xprop.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thanks. From researching this property it follows it should not be set directly but it's something managed by the WM.
I ended up using xdotool + wmctrl to achieve what I needed.
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 528.78 KiB (Peak: 532.72 KiB) ]