win: always track property changes
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@ -495,8 +495,7 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t
|
||||
}
|
||||
|
||||
// If name changes
|
||||
if (ps->o.track_wdata &&
|
||||
(ps->atoms->aWM_NAME == ev->atom || ps->atoms->a_NET_WM_NAME == ev->atom)) {
|
||||
if (ps->atoms->aWM_NAME == ev->atom || ps->atoms->a_NET_WM_NAME == ev->atom) {
|
||||
auto w = find_toplevel(ps, ev->window);
|
||||
if (w && win_update_name(ps, w) == 1) {
|
||||
win_on_factor_change(ps, w);
|
||||
@ -504,7 +503,7 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t
|
||||
}
|
||||
|
||||
// If class changes
|
||||
if (ps->o.track_wdata && ps->atoms->aWM_CLASS == ev->atom) {
|
||||
if (ps->atoms->aWM_CLASS == ev->atom) {
|
||||
auto w = find_toplevel(ps, ev->window);
|
||||
if (w) {
|
||||
win_get_class(ps, w);
|
||||
@ -513,7 +512,7 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t
|
||||
}
|
||||
|
||||
// If role changes
|
||||
if (ps->o.track_wdata && ps->atoms->aWM_WINDOW_ROLE == ev->atom) {
|
||||
if (ps->atoms->aWM_WINDOW_ROLE == ev->atom) {
|
||||
auto w = find_toplevel(ps, ev->window);
|
||||
if (w && 1 == win_get_role(ps, w)) {
|
||||
win_on_factor_change(ps, w);
|
||||
|
Reference in New Issue
Block a user