Closed REYNEP closed 2 years ago
THIS WORKS:
[FIXED] UPDATE:
"<instance_name>\0""<class_name>"
2 (NULL terminated) strings, first one is<instance_name>
and actually the second one isclass_name
[REF] Tronche: https://tronche.com/gui/x/xlib/ICC/client-to-window-manager/wm-class.html https://tronche.com/gui/x/icccm/sec-4.html#WM_CLASS
https://github.com/rust-windowing/glutin/issues/879 [Has to be set before Window is Mapped].... spotify doesn't, so BSPC rules doesn't work on official spotify https://github.com/dasJ/spotifywm & https://community.spotify.com/t5/Desktop-Linux/WM-CLASS-window-property-on-Linux/m-p/1511491/highlight/true#M4227
for XCB implementation: (search
wm_class
) https://github.com/REYNEP/amGHOST/blob/master/intern/amGHOST_WindowXCB.hh
Hi, I know its not the right place to ask for this. Or to create to an Issue for. But since I couldn't actually find any place to ask for help, other than r/UnixPorn. Here I am asking for help. Any kinda help is appreciated. Thanks in advance.
The Problem
in bspwmrc added
bspc rule -a re state=floating
, so the window should open as Floating right? but it isn't doing that... its still tiled. Did restart bspwmrc, tried restarting OS too.I thought in the rule.... that re a.k.a the application/executable name was supposed to be
<class_name>
, so I tried setting the ATOMs below includingWM_CLASS
.EWMH [Client App Window] (& other ATOMs)
I have set
_NET_WM_STATE
:_NET_WM_STATE_MODAL
usingxcb_ewmh_set_wm_state()
_NET_WM_WINDOW_TYPE
:_NET_WM_WINDOW_TYPE_NORMAL
usingxcb_change_property()
WM_NORMAL_HINTS
(using icccm)WM_CLASS & WM_HINTS
(using icccm)_NET_WM_PID
WM_CLIENT_MACHINE
(using icccm)