mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +00:00
set prevents activation tag bit on windows
This commit is contained in:
parent
016ccc317d
commit
5e7b93221c
3 changed files with 6 additions and 8 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -59,6 +59,7 @@ extern CGError SLSHideSpaces(int cid, CFArrayRef space_list);
|
|||
extern CGError SLSSpaceAddWindowsAndRemoveFromSpaces(int cid, int sid, CFArrayRef array, int seven);
|
||||
|
||||
#define kCGSExposeFadeTagBit (1ULL << 1)
|
||||
#define kCGSPreventsActivationTagBit (1ULL << 16)
|
||||
|
||||
#define W_ABOVE 1
|
||||
#define W_OUT 0
|
||||
|
|
Loading…
Reference in a new issue