The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Considering _net_wm_state?

asked 2013-12-09 19:18:27 +0000

milkypostman gravatar image

Is there a way to get i3 to recognize things about the _NET_WM_STATE?

I have a window I want to be floating but there is no way to distinguish it except that it doesn't have a WM_WINDOW_ROLE (for_window seems to skip window_role when WM_WINDOW_ROLE is missing) and it sets,

_NET_WM_STATE(ATOM) = _NET_WM_STATE_ABOVE, _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR

Basically, I'd like to recognize any window that has _NET_WM_STATE_ABOVE as a floating window.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-12-09 19:45:34 +0000

Michael gravatar image

Report a bug upstream for the application this is about.

_NET_WM_STATE_ABOVE is certainly not the right criterion to make something floating. Quote from the standard:

_NET_WM_STATE_ABOVE indicates that the window should be on top of most windows (see the section called “Stacking order” for details).
_NET_WM_STATE_BELOW indicates that the window should be below most windows (see the section called “Stacking order” for details).
_NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW are mainly meant for user preferences and should not be used by applications e.g. for drawing attention to their dialogs (the Urgency hint should be used in that case, see the section called “Urgency”).'

See http://code.stapelberg.de/git/i3/tree... for what i3 makes floating. The most likely candidate for your case seems to be setting the leader window on the dialog window.

edit flag offensive delete link more

Comments

What about `_NET_WM_STATE_STICKY` which states that the window should keep the window's position fixed? Also `_NET_WM_STATE_SKIP_TASKBAR`. With both of those enabled, it seems like the application doesn't want to be controlled and in most other WMs, like gnome, this causes the window to be unmanaged

milkypostman gravatar imagemilkypostman ( 2013-12-09 20:00:46 +0000 )edit

Question Tools

Stats

Asked: 2013-12-09 19:18:27 +0000

Seen: 220 times

Last updated: Dec 09 '13