diff --git a/src/bar_item.c b/src/bar_item.c index 1b1bf59..eb3826e 100644 --- a/src/bar_item.c +++ b/src/bar_item.c @@ -704,12 +704,9 @@ void bar_item_draw(struct bar_item* bar_item, CGContextRef context) { text_draw(&bar_item->icon, context); text_draw(&bar_item->label, context); - if (bar_item->has_alias) - alias_draw(&bar_item->alias, context); - if (bar_item->has_graph) - graph_draw(&bar_item->graph, context); - if (bar_item->has_slider) - slider_draw(&bar_item->slider, context); + if (bar_item->has_alias) alias_draw(&bar_item->alias, context); + if (bar_item->has_graph) graph_draw(&bar_item->graph, context); + if (bar_item->has_slider) slider_draw(&bar_item->slider, context); } void bar_item_change_space(struct bar_item* bar_item, uint64_t dsid, uint32_t adid) { diff --git a/src/window.c b/src/window.c index 498b3ac..4d9219f 100644 --- a/src/window.c +++ b/src/window.c @@ -24,7 +24,7 @@ static CFTypeRef window_create_region(struct window* window, CGRect frame) { } void window_create(struct window* window, CGRect frame) { - uint64_t set_tags = kCGSExposeFadeTagBit; + uint64_t set_tags = kCGSExposeFadeTagBit | kCGSPreventsActivationTagBit; uint64_t clear_tags = 0; window->origin = frame.origin; diff --git a/src/window.h b/src/window.h index bacf0eb..34f6a8e 100644 --- a/src/window.h +++ b/src/window.h @@ -58,7 +58,8 @@ extern CGError SLSShowSpaces(int cid, CFArrayRef space_list); extern CGError SLSHideSpaces(int cid, CFArrayRef space_list); extern CGError SLSSpaceAddWindowsAndRemoveFromSpaces(int cid, int sid, CFArrayRef array, int seven); -#define kCGSExposeFadeTagBit (1ULL << 1) +#define kCGSExposeFadeTagBit (1ULL << 1) +#define kCGSPreventsActivationTagBit (1ULL << 16) #define W_ABOVE 1 #define W_OUT 0