rename, refactor again.
This commit is contained in:
parent
3dfaea3698
commit
f358eb5962
|
@ -966,15 +966,15 @@ paint_all(Display *dpy, XserverRegion region) {
|
||||||
root_buffer = root_picture;
|
root_buffer = root_picture;
|
||||||
#else
|
#else
|
||||||
if (!root_buffer) {
|
if (!root_buffer) {
|
||||||
Pixmap rootPixmap = XCreatePixmap(
|
Pixmap root_pixmap = XCreatePixmap(
|
||||||
dpy, root, root_width, root_height,
|
dpy, root, root_width, root_height,
|
||||||
DefaultDepth(dpy, scr));
|
DefaultDepth(dpy, scr));
|
||||||
|
|
||||||
root_buffer = XRenderCreatePicture(dpy, rootPixmap,
|
root_buffer = XRenderCreatePicture(dpy, root_pixmap,
|
||||||
XRenderFindVisualFormat(dpy, DefaultVisual(dpy, scr)),
|
XRenderFindVisualFormat(dpy, DefaultVisual(dpy, scr)),
|
||||||
0, 0);
|
0, 0);
|
||||||
|
|
||||||
XFreePixmap(dpy, rootPixmap);
|
XFreePixmap(dpy, root_pixmap);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1045,7 +1045,7 @@ paint_all(Display *dpy, XserverRegion region) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!w->border_size) {
|
if (!w->border_size) {
|
||||||
w->border_size = border_size (dpy, w);
|
w->border_size = border_size(dpy, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!w->extents) {
|
if (!w->extents) {
|
||||||
|
@ -1220,7 +1220,7 @@ repair_win(Display *dpy, win *w) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_WINTYPE
|
#if DEBUG_WINTYPE
|
||||||
static const char*
|
static const char *
|
||||||
wintype_name(wintype type) {
|
wintype_name(wintype type) {
|
||||||
const char *t;
|
const char *t;
|
||||||
|
|
||||||
|
@ -1427,8 +1427,8 @@ finish_unmap_win(Display *dpy, win *w) {
|
||||||
|
|
||||||
if (w->border_size) {
|
if (w->border_size) {
|
||||||
set_ignore(dpy, NextRequest(dpy));
|
set_ignore(dpy, NextRequest(dpy));
|
||||||
XFixesDestroyRegion(dpy, w->border_size);
|
XFixesDestroyRegion(dpy, w->border_size);
|
||||||
w->border_size = None;
|
w->border_size = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w->shadow) {
|
if (w->shadow) {
|
||||||
|
@ -1512,7 +1512,7 @@ determine_mode(Display *dpy, win *w) {
|
||||||
int mode;
|
int mode;
|
||||||
XRenderPictFormat *format;
|
XRenderPictFormat *format;
|
||||||
|
|
||||||
/* if trans prop == -1 fall back on previous tests*/
|
/* if trans prop == -1 fall back on previous tests */
|
||||||
|
|
||||||
if (w->alpha_pict) {
|
if (w->alpha_pict) {
|
||||||
XRenderFreePicture(dpy, w->alpha_pict);
|
XRenderFreePicture(dpy, w->alpha_pict);
|
||||||
|
@ -1806,7 +1806,7 @@ finish_destroy_win(Display *dpy, Window id) {
|
||||||
|
|
||||||
/* fix leak, from freedesktop repo */
|
/* fix leak, from freedesktop repo */
|
||||||
if (w->shadow) {
|
if (w->shadow) {
|
||||||
XRenderFreePicture (dpy, w->shadow);
|
XRenderFreePicture(dpy, w->shadow);
|
||||||
w->shadow = None;
|
w->shadow = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue