mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Merge pull request #71 from adeason/x11-bstore
Enable X11 backing store
This commit is contained in:
commit
b03d88dcf9
10
src/x11.cc
10
src/x11.cc
@ -618,7 +618,7 @@ static void init_window(lua::state &l __attribute__((unused)), bool own)
|
||||
|
||||
#ifdef OWN_WINDOW
|
||||
if (own) {
|
||||
int depth = 0, flags;
|
||||
int depth = 0, flags = CWOverrideRedirect | CWBackingStore;
|
||||
Visual *visual = NULL;
|
||||
|
||||
if (!find_desktop_window(&window.root, &window.desktop)) {
|
||||
@ -654,10 +654,10 @@ static void init_window(lua::state &l __attribute__((unused)), bool own)
|
||||
#ifdef BUILD_ARGB
|
||||
if (have_argb_visual) {
|
||||
attrs.colormap = window.colourmap;
|
||||
flags = CWBorderPixel | CWColormap | CWOverrideRedirect;
|
||||
flags |= CWBorderPixel | CWColormap;
|
||||
} else {
|
||||
#endif /* BUILD_ARGB */
|
||||
flags = CWBackPixel | CWOverrideRedirect;
|
||||
flags |= CWBackPixel;
|
||||
#ifdef BUILD_ARGB
|
||||
}
|
||||
#endif /* BUILD_ARGB */
|
||||
@ -686,10 +686,10 @@ static void init_window(lua::state &l __attribute__((unused)), bool own)
|
||||
#ifdef BUILD_ARGB
|
||||
if (have_argb_visual) {
|
||||
attrs.colormap = window.colourmap;
|
||||
flags = CWBorderPixel | CWColormap | CWOverrideRedirect;
|
||||
flags |= CWBorderPixel | CWColormap;
|
||||
} else {
|
||||
#endif /* BUILD_ARGB */
|
||||
flags = CWBackPixel | CWOverrideRedirect;
|
||||
flags |= CWBackPixel;
|
||||
#ifdef BUILD_ARGB
|
||||
}
|
||||
#endif /* BUILD_ARGB */
|
||||
|
Loading…
Reference in New Issue
Block a user