remove super sticky tag bit

This commit is contained in:
Felix Kratz 2021-11-02 17:16:52 +01:00
parent 58a53551ee
commit 8598d4187c
2 changed files with 7 additions and 3 deletions

View file

@ -351,6 +351,7 @@ void bar_disable_shadow(struct bar* bar) {
void bar_create_window(struct bar* bar) {
uint64_t set_tags = kCGSStickyTagBit | kCGSHighQualityResamplingTagBit;
uint64_t clear_tags = kCGSSuperStickyTagBit;
CFTypeRef frame_region;
bar_create_frame(bar, &frame_region);
@ -361,6 +362,7 @@ void bar_create_window(struct bar* bar) {
SLSSetWindowResolution(g_connection, bar->id, 2.0f);
SLSSetWindowTags(g_connection, bar->id, &set_tags, 64);
SLSClearWindowTags(g_connection, bar->id, &clear_tags, 64);
SLSSetWindowOpacity(g_connection, bar->id, 0);
bar_set_blur_radius(bar);
if (!g_bar_manager.shadow) bar_disable_shadow(bar);

View file

@ -7,6 +7,7 @@ extern CGError SLSReenableUpdate(int cid);
extern CGError SLSNewWindow(int cid, int type, float x, float y, CFTypeRef region, uint32_t *wid);
extern CGError SLSReleaseWindow(int cid, uint32_t wid);
extern CGError SLSSetWindowTags(int cid, uint32_t wid, uint64_t* tags, int tag_size);
extern CGError SLSClearWindowTags(int cid, uint32_t wid, uint64_t* tags, int tag_size);
extern CGError SLSSetWindowShape(int cid, uint32_t wid, float x_offset, float y_offset, CFTypeRef shape);
extern CGError SLSSetWindowResolution(int cid, uint32_t wid, double res);
extern CGError SLSSetWindowOpacity(int cid, uint32_t wid, bool isOpaque);
@ -22,9 +23,10 @@ extern CGError SLSClearActivationRegion(uint32_t cid, uint32_t wid);
extern CGError SLSRemoveAllTrackingAreas(uint32_t cid, uint32_t wid);
extern CGError SLSWindowSetShadowProperties(uint32_t wid, CFDictionaryRef properties);
#define kCGSDisableShadowTagBit (1 << 3)
#define kCGSHighQualityResamplingTagBit (1 << 4)
#define kCGSStickyTagBit (1 << 11)
#define kCGSDisableShadowTagBit (1ULL << 3)
#define kCGSHighQualityResamplingTagBit (1ULL << 4)
#define kCGSStickyTagBit (1ULL << 11)
#define kCGSSuperStickyTagBit (1ULL << 45)
#define ALIGN_NONE 0
#define ALIGN_LEFT 1