use kCGBackingStoreBuffered enum value

This commit is contained in:
Felix Kratz 2023-04-21 20:47:39 +02:00
parent a8012ff3d9
commit 4f0a754f7f

View file

@ -38,7 +38,10 @@ 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,
SLSNewWindow(g_connection,
kCGBackingStoreBuffered,
window->origin.x,
window->origin.y,
frame_region,
&id );