From f10b27cc9f3e7e201080a245d1c23143e013fad2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 2 Aug 2018 10:47:28 +0300 Subject: [PATCH] Fix bug #1430: inverted logic in X11 ConfigureNotify (resize) handling. Patch from Norihiro Kamae : Condition to be ignored should be both width and height are same to the pending size. If not, ie., width or height is different, the resize event should be processed. --- src/video/x11/SDL_x11events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 5e387ef8d..c88ef7aec 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -849,8 +849,8 @@ printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xco #endif if ((X11_PendingConfigureNotifyWidth != -1) && (X11_PendingConfigureNotifyHeight != -1)) { - if ((xevent.xconfigure.width != X11_PendingConfigureNotifyWidth) && - (xevent.xconfigure.height != X11_PendingConfigureNotifyHeight)) { + if ((xevent.xconfigure.width == X11_PendingConfigureNotifyWidth) && + (xevent.xconfigure.height == X11_PendingConfigureNotifyHeight)) { /* Event is from before the resize, so ignore. */ break; }