Skip to content

Commit

Permalink
Improve borders when using window tiling
Browse files Browse the repository at this point in the history
- Change the window level of the border window to make it play nice with macOS Sequoia
  • Loading branch information
zenangst committed Sep 17, 2024
1 parent 6300afc commit bbad73d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/misc/extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ extern CGError SLSClearWindowTags(int cid, uint32_t wid, uint64_t* tags, int tag
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);
extern CGError SLSSetWindowLevel(int cid, uint32_t wid, int level);
extern CGError SLSSetWindowAlpha(int cid, uint32_t wid, float alpha);
extern CGError SLSSetWindowBackgroundBlurRadius(int cid, uint32_t wid, uint32_t radius);
extern CGError SLSSetWindowShadowParameters(int cid, uint32_t wid, float std, float density, int x_offset, int y_offset);
Expand Down
1 change: 1 addition & 0 deletions src/misc/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ static inline uint32_t window_create(int cid, CGRect frame, bool hidpi, bool unm
SLSSetWindowTags(cid, wid, &set_tags, 64);
SLSClearWindowTags(cid, wid, &clear_tags, 64);
SLSSetWindowOpacity(cid, wid, 0);
SLSSetWindowLevel(cid, wid, kCGFloatingWindowLevel);

CFIndex shadow_density = 0;
CFNumberRef shadow_density_cf = CFNumberCreate(kCFAllocatorDefault,
Expand Down

0 comments on commit bbad73d

Please sign in to comment.