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,9 +38,12 @@ void window_create(struct window* window, CGRect frame) {
frame.origin = CGPointZero; frame.origin = CGPointZero;
CFTypeRef frame_region = window_create_region(window, frame); CFTypeRef frame_region = window_create_region(window, frame);
uint64_t id; uint64_t id;
SLSNewWindow(g_connection, 2, window->origin.x, window->origin.y, SLSNewWindow(g_connection,
frame_region, kCGBackingStoreBuffered,
&id ); window->origin.x,
window->origin.y,
frame_region,
&id );
window->id = (uint32_t)id; window->id = (uint32_t)id;
CFRelease(frame_region); CFRelease(frame_region);