GNOME Bugzilla – Bug 408247
toggle window sticky attribute with wmctrl does not work
Last modified: 2007-03-26 22:18:51 UTC
Please describe the problem: I can not make a window visible on all workspaces with the tool "wmctrl". Steps to reproduce: 1. gnome-terminal 2. wmctrl -r :ACTIVE: -b toggle,sticky 3. Actual results: Nothing happens. Expected results: I would expect that the current gnome-terminal window appears at all workspaces. It should do the same as when I press the right mouse button in the title bar an choose "Always on visible workspace" Does this happen every time? Yes Other information: I can change other properties with wmctrl like "fullscreen" without any problems.
I noticed that too with wmctrl and metacity 2.18. However, devilpie's (un)pin function still works.
Reproduced here; now looking at this.
(I'm assuming your wmctrl command is trying to toggle the _NET_WM_STATE_STICKY attribute on a window; we can reopen if my assumption is wrong) From the EWMH: _NET_WM_ACTION_STICK indicates that the window may have its sticky state toggled (as for _NET_WM_STATE_STICKY). Note that this state has to do with viewports, not desktops. Metacity doesn't implment viewports, so toggling _NET_WM_STATE_STICKY is unsupported. But even if it was supported, it wouldn't do what you want. So I'm marking this as not a bug. The correct way to put a window on all desktops is to change the NET_WM_DESKTOP property to 0xFFFFFFFF (as per the EWMH).