Skip to content

Commit

Permalink
push version to 2.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Dec 30, 2022
1 parent 82943f4 commit f6ce7fe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ typedef ANIMATOR_FUNCTION(animator_function);
#define ANIMATION_FUNCTION(name) double name(double x);
typedef ANIMATION_FUNCTION(animation_function);

#define INTERP_FUNCTION_LINEAR 'l'
#define INTERP_FUNCTION_QUADRATIC 'q'
#define INTERP_FUNCTION_SIN 's'
#define INTERP_FUNCTION_TANH 't'
#define INTERP_FUNCTION_BOUNCE 'b'
#define INTERP_FUNCTION_EXP 'e'
#define INTERP_FUNCTION_OVERSHOOT 'o'
#define INTERP_FUNCTION_LINEAR 'l'
#define INTERP_FUNCTION_QUADRATIC 'q'
#define INTERP_FUNCTION_SIN 's'
#define INTERP_FUNCTION_TANH 't'
#define INTERP_FUNCTION_BOUNCE 'b'
#define INTERP_FUNCTION_EXP 'e'
#define INTERP_FUNCTION_OVERSHOOT 'o'


struct animation {
Expand Down
2 changes: 1 addition & 1 deletion src/sketchybar.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#define MAJOR 2
#define MINOR 12
#define PATCH 2
#define PATCH 3

extern int SLSMainConnectionID(void);
extern int RunApplicationEventLoop(void);
Expand Down
11 changes: 9 additions & 2 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ bool window_apply_frame(struct window* window) {
CFTypeRef frame_region = window_create_region(window, window->frame);

if (__builtin_available(macOS 13.0, *)) {
SLSSetWindowShape(g_connection, window->id, g_nirvana.x, g_nirvana.y, frame_region);
SLSSetWindowShape(g_connection, window->id,
g_nirvana.x,
g_nirvana.y,
frame_region);
} else {
if (window->parent) {
SLSOrderWindow(g_connection, window->id, 0, window->parent->id);
Expand Down Expand Up @@ -150,7 +153,11 @@ bool window_apply_frame(struct window* window) {
}

void window_send_to_space(struct window* window, uint64_t dsid) {
CFArrayRef window_list = cfarray_of_cfnumbers(&window->id, sizeof(uint32_t), 1, kCFNumberSInt32Type);
CFArrayRef window_list = cfarray_of_cfnumbers(&window->id,
sizeof(uint32_t),
1,
kCFNumberSInt32Type);

SLSMoveWindowsToManagedSpace(g_connection, window_list, dsid);
if (CGPointEqualToPoint(window->origin, g_nirvana)) {
SLSMoveWindow(g_connection, window->id, &g_nirvana);
Expand Down
2 changes: 1 addition & 1 deletion src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern CGError SLSSetSurfaceColorSpace(int cid, uint32_t wid, uint32_t surface,

#define W_ABOVE 1
#define W_OUT 0
#define W_BELOW -1
#define W_BELOW -1

extern CFTypeRef g_transaction;

Expand Down

0 comments on commit f6ce7fe

Please sign in to comment.