Always detect Polybar

This commit is contained in:
Alex Kotov 2021-12-05 18:14:54 +05:00
parent 9ff7725016
commit fa8f4cd541
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -1746,7 +1746,9 @@ void scan()
if (!XGetWindowAttributes(xbase->x_display, wins[i], &wa)) {
continue;
}
if (
if (winpolybar(wins[i])) {
// do nothing
} else if (
XGetTransientForHint(xbase->x_display, wins[i], &d1)
&&
(wa.map_state == IsViewable || getstate(wins[i]) == IconicState)