Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-06-28 22:25:12

mocha
Member
Registered: 2022-12-12
Posts: 18

Program setting "Always On Top"

I have one small utility I use in XFCE https://kornelix.net/mystuff/mystuff.html which is somehow setting "Always On Top" by default everytime I run it. How are they doing this and I want to be able to turn it off. Anyone know how to override it back to "Same As Other Windows" all the time? Thanks!

Offline

#2 2024-06-29 02:31:26

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,313

Re: Program setting "Always On Top"

mocha wrote:

I have one small utility I use in XFCE https://kornelix.net/mystuff/mystuff.html which is somehow setting "Always On Top" by default everytime I run it.

This is by design, it appears.

How are they doing this and I want to be able to turn it off. Anyone know how to override it back to "Same As Other Windows" all the time? Thanks!

If you are building the program from source, then comment out or delete line #259 of mystuff.cc:

      gtk_window_set_keep_above(GTK_WINDOW(mPop),1);                             //  4.1

...and rebuild it.

If you are looking for an way to do it without rebuilding, then try something like this when starting the program:

mystuff & sleep 1 && wmctrl -r :ACTIVE: -b remove,above

...note: you may need to increase the duration of the sleep command there depending on how long it takes for the window to open.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-06-29 06:24:19

mocha
Member
Registered: 2022-12-12
Posts: 18

Re: Program setting "Always On Top"

Oh wow, you are good. I didn't think to look in the source! Thanks!

Offline

Board footer

Powered by FluxBB