set prevents activation tag bit on windows

This commit is contained in:
Felix Kratz 2024-02-24 22:30:00 +01:00
parent 016ccc317d
commit 5e7b93221c
3 changed files with 6 additions and 8 deletions

View file

@ -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) {

View file

@ -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;

View file

@ -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