Remove window flicker on start by clearing the window with black after creation.
This commit is contained in:
1 parent
83b1bbc6cc
commit
78c1f81bd5
1 file changed
+4
@@ -999,6 +999,10 @@ lockscreen(Display *dpy, struct xrandr *rr, int screen)
|
||||
DefaultVisual(dpy, lock->screen),
|
||||
CWOverrideRedirect | CWBackPixel, &wa);
|
||||
#endif
|
||||
|
||||
XSetWindowBackground(dpy, lock->win, BlackPixel(dpy, screen));
|
||||
XClearWindow(dpy, lock->win);
|
||||
|
||||
lock->pmap = XCreateBitmapFromData(dpy, lock->win, curs, 8, 8);
|
||||
invisible = XCreatePixmapCursor(dpy, lock->pmap, lock->pmap,
|
||||
&color, &color, 0, 0);
|
||||
|
||||
Reference in new issue
Block a user