Commit graph

777 commits

Author SHA1 Message Date
Felix Kratz
277b253c4d fix uint32_t value underflow in group offset calculation 2022-12-12 11:38:11 +01:00
Felix Kratz
4f82e06af2 needs_ordering on window_create 2022-12-10 23:49:37 +01:00
Felix Kratz
b33e192b66 add some more private DisplayServices signatures 2022-12-10 22:38:59 +01:00
Felix Kratz
fb3a653cfa fix signature for mach_get_bs_port 2022-12-10 20:33:47 +01:00
Felix Kratz
60d09aaeec silly bug 2022-12-10 20:31:04 +01:00
Felix Kratz
1e4725e1a9 cleanup 2022-12-10 19:57:44 +01:00
Felix Kratz
4e2f146393 fix center items not being centered with a bar margin 2022-12-02 10:47:57 +01:00
Felix Kratz
1168fe552a push version to 2.11.2 2022-11-30 21:10:28 +01:00
Felix Kratz
3e01316557 fix SLSSurface function signatures 2022-11-26 00:46:42 +01:00
Felix Kratz
9cca91678f fix malformed $INFO variable for distributed notification info (#271) 2022-11-17 09:47:37 +01:00
Felix Kratz
b459125bbb push version to 2.11.1 2022-11-13 13:04:36 +01:00
Felix Kratz
670c29ef7f fix edge case leading to a blank bar after leaving fullscreen (#285) 2022-11-13 12:40:47 +01:00
Felix Kratz
907001f99b dont order windows after applying frame on ventura 2022-11-11 17:03:46 +01:00
Felix Kratz
b4499156f5
Merge pull request #276 from izeau/background-clip
Add bar background clipping
2022-10-29 20:20:07 +02:00
Felix Kratz
dfd6ad4f27 finalization 2022-10-29 20:15:02 +02:00
Felix Kratz
21e4753391 ... 2022-10-28 12:47:31 +02:00
Felix Kratz
f757304bf8 clipping prototype 2022-10-28 12:44:08 +02:00
Felix Kratz
2d2ccfcc96 clean up background bounds calculation 2022-10-28 11:23:05 +02:00
Felix Kratz
a09c30c2e0 fix double free edge case 2022-10-26 18:58:44 +02:00
Felix Kratz
62db503302 fix memory corruption on client due to mach vm dealloc 2022-10-26 18:47:05 +02:00
izeau
f3d51570f2 add bar background clipping
Implements the features discussed in #274. It allows the clipping of the
bar background to reveal what is underneath. The clipping shape is based
on the background dimensions & corner radius, and the clipping mask is a
float (0.f = no clipping, 1.f = fully clipped). The background.clip
property is fully animatable, and can be applied to items and brackets,
but not to the bar itself or to text items.

Floating point number properties can now be animated using the
ANIMATE_FLOAT macro.

Clipping should not affect performance when disabled, aside from an
additional loop in the bar_draw function. When enabled, there are at the
moment quite a few preventable bar redraws since the bar_needs_refresh
is naive and does not check if the bar actually needs a refresh (i.e.
the clipping value has changed, the item has moved or its dimensions
were changed). A less aggressive change detection may be implemented but
would require a bit of refactoring to the update functions.
2022-10-26 13:49:59 +02:00
Felix Kratz
32d85ffe9b push version to 2.11.0 2022-10-26 08:32:32 +02:00
Felix Kratz
c944509888
Merge pull request #275 from izeau/fix-273
fix missing item separator in space_change info #273
2022-10-25 21:26:36 +02:00
Felix Kratz
c47bac42b4 fix window ordering for monterey 2022-10-25 21:20:32 +02:00
izeau
302e6928dc fix missing item separator in space_change info #273 2022-10-25 18:44:46 +02:00
Felix Kratz
a502075856 experimental ventura patch 2022-10-25 18:13:21 +02:00
Felix Kratz
6244fb0155 push version to 2.10.1 2022-10-14 21:26:33 +02:00
Felix Kratz
f791cfaa98 cleanup 2022-10-14 21:23:48 +02:00
Felix Kratz
5ed920b78d possibly fix #262 2022-10-14 18:30:57 +02:00
Felix Kratz
066096f382 possibly fix #262 2022-10-14 18:28:12 +02:00
Felix Kratz
ca15ea88fd add brightness_change event using private DisplayServices framework 2022-10-13 18:32:20 +02:00
Felix Kratz
862951d39a fix volume event memory leak 2022-10-13 18:26:24 +02:00
Felix Kratz
d8c9628cd2 push version to 2.10.0 2022-10-11 22:00:12 +02:00
Felix Kratz
078efc261b animation system improvements: only property changes in the same command can be chained together, a new animation request cancels the current animation queue and immediatly starts the new animation from the current value 2022-10-11 21:44:31 +02:00
Felix Kratz
737c265334 allow negating boolean properties 2022-10-11 14:48:09 +02:00
Felix Kratz
93725bb8ee cancel pending animations for property when receiving a non-animated --set command 2022-10-11 14:47:28 +02:00
Felix Kratz
06c7a0705e finalize volume_change event 2022-10-10 22:00:08 +02:00
Felix Kratz
9b37667ee2 properly handle stereo volume events and device changes 2022-10-10 21:50:23 +02:00
Felix Kratz
69eb01491b guard volume event setup 2022-10-09 17:15:17 +02:00
Felix Kratz
bc4de68167 pass volume as an integer to scripts 2022-10-09 16:35:09 +02:00
Felix Kratz
673259897d add volume_change event 2022-10-09 16:21:22 +02:00
Felix Kratz
cf5e7ccaff allow chaining dynamic width animations for texts 2022-10-09 13:38:07 +02:00
Felix Kratz
d2e6a36f6b cleanup 2022-10-07 23:35:39 +02:00
Felix Kratz
faf1d22ca1 group height 2022-10-07 22:50:14 +02:00
Felix Kratz
189709bf5c correctly center center items for left/right bars 2022-10-07 22:22:01 +02:00
Felix Kratz
7675f87222 enable popups for left/right bars 2022-10-07 22:13:49 +02:00
Felix Kratz
ac9f35edea experimenting with left/right bar positions (#240) 2022-10-06 21:05:19 +02:00
Felix Kratz
1340a0a555 fix for text height 2022-10-06 20:39:09 +02:00
Felix Kratz
44c0915356 respect background in item height calculation 2022-10-06 20:20:48 +02:00
Felix Kratz
b4c6320b60 fix macOS menu bar bounds calculation on arm macs 2022-10-06 19:11:59 +02:00