From f38d8a33bd9e6e405d9fedcba7a470690823430f Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Tue, 28 Jan 2020 12:04:03 +0200 Subject: [PATCH] * Source/x11/XGServerEvent.m (processEvent:): add space after comma in XSync call. * Source/x11/XGServerWindow.m (boundsForScreen:): use NSZeroRect. --- Source/x11/XGServerEvent.m | 2 +- Source/x11/XGServerWindow.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/x11/XGServerEvent.m b/Source/x11/XGServerEvent.m index 36832d3..d0f97fd 100644 --- a/Source/x11/XGServerEvent.m +++ b/Source/x11/XGServerEvent.m @@ -1905,7 +1905,7 @@ posixFileDescriptor: (NSPosixFileDescriptor*)fileDescriptor && (xEvent.xconfigure.window == RootWindow(dpy, defScreen))) { // Check if other RandR events are waiting in the queue. - XSync(dpy,0); + XSync(dpy, 0); while (XCheckTypedEvent(dpy, randr_event_type, &xEvent)) {;} XRRUpdateConfiguration(event); diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 0d5138f..d5ac87c 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -4512,7 +4512,7 @@ _computeDepth(int class, int bpp) - (NSRect) boundsForScreen: (int)screen { - NSRect boundsRect = {{0,0},{0,0}}; + NSRect boundsRect = NSZeroRect; if (screen < 0 || screen >= ScreenCount(dpy)) {