diff --git a/switcher.c b/switcher.c index cde8c9073e24d5cc5dafdc1cc61a6bfd5c630d65..255fe2f1f7e950ebe38c8b9ea88ddaaee0205434 100644 --- a/switcher.c +++ b/switcher.c @@ -152,9 +152,8 @@ on_current_desktop = 1; } } if (prop) XFree(prop); - if (is_sticky(w)) on_current_desktop = 1; - if (on_current_desktop) { + if (on_current_desktop && !is_sticky(w)) { XWindowAttributes wa; XGetWindowAttributes(wm.dpy, w, &wa); if (wa.map_state == IsViewable) {