[client] x11: provide an empty rect region to XPresentPixmap

Providing None informs the comppositor that there is full screen damage,
instead we provide an empty rectangle to prevent this behaviour.
This commit is contained in:
Geoffrey McRae
2021-08-03 07:49:59 +10:00
parent 4d9ab81ef4
commit 504bf02855
2 changed files with 8 additions and 5 deletions

View File

@@ -26,6 +26,7 @@
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xfixes.h>
#include <GL/glx.h>
@@ -42,6 +43,7 @@ struct X11DSState
uint32_t presentSerial;
Pixmap presentPixmap;
XserverRegion presentRegion;
LGEvent * frameEvent;
LGThread * eventThread;