* Attempt to drain stdin, so it doesn't cause the main loop to
* call us as fast as it can.
*/
- fgets(b, sizeof(b), stdin);
+ while (fgets(b, sizeof(b), stdin) != NULL);
if (!bar_enabled)
return;
}
/* Unmap unwanted windows if not multi-screen. */
- if (!(num_screens > 1 || outputs > 1) && (w != win ||
- w != parent || w->transient != win->id))
+ if (num_screens <= 1 && outputs <= 1 && w != win &&
+ w != parent && w->transient != win->id)
unmap_window(w);
}