From 4f0a754f7f69f9b595856163c83b885c8952c94c Mon Sep 17 00:00:00 2001 From: Felix Kratz Date: Fri, 21 Apr 2023 20:47:39 +0200 Subject: [PATCH] use kCGBackingStoreBuffered enum value --- src/window.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/window.c b/src/window.c index bcd608a..91550eb 100644 --- a/src/window.c +++ b/src/window.c @@ -38,9 +38,12 @@ void window_create(struct window* window, CGRect frame) { frame.origin = CGPointZero; CFTypeRef frame_region = window_create_region(window, frame); uint64_t id; - SLSNewWindow(g_connection, 2, window->origin.x, window->origin.y, - frame_region, - &id ); + SLSNewWindow(g_connection, + kCGBackingStoreBuffered, + window->origin.x, + window->origin.y, + frame_region, + &id ); window->id = (uint32_t)id; CFRelease(frame_region);