Skip to content

Commit

Permalink
removing the background pixel eliminates flicker when slimlock starts.
Browse files Browse the repository at this point in the history
This makes for really nice transitions on window managers
such as awesome, or when the desktop background is the same as slimlocks
background.
  • Loading branch information
schneidersoft authored and axs-gentoo committed Sep 22, 2015
1 parent 855a5ca commit dce02ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slimlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ int main(int argc, char **argv) {

XSetWindowAttributes wa;
wa.override_redirect = 1;
wa.background_pixel = BlackPixel(dpy, scr);

// Create a full screen window
root = RootWindow(dpy, scr);
Expand All @@ -164,7 +163,7 @@ int main(int argc, char **argv) {
DefaultDepth(dpy, scr),
CopyFromParent,
DefaultVisual(dpy, scr),
CWOverrideRedirect | CWBackPixel,
CWOverrideRedirect,
&wa);
XMapWindow(dpy, win);

Expand Down

0 comments on commit dce02ef

Please sign in to comment.