No compositor if no _NET_WM_CM_Si atom

close #734
This commit is contained in:
matclab 2020-07-12 14:44:47 +02:00
parent 0de8610b67
commit 3c33f4559f

View File

@ -146,7 +146,11 @@ static bool x_win_composited(struct window_x11 *win)
sprintf(astr, "_NET_WM_CM_S%i", win->cur_screen); sprintf(astr, "_NET_WM_CM_S%i", win->cur_screen);
cm_sel = XInternAtom(xctx.dpy, astr, true); cm_sel = XInternAtom(xctx.dpy, astr, true);
if (cm_sel == None) {
return false;
} else {
return XGetSelectionOwner(xctx.dpy, cm_sel) != None; return XGetSelectionOwner(xctx.dpy, cm_sel) != None;
}
} }
void x_display_surface(cairo_surface_t *srf, struct window_x11 *win, const struct dimensions *dim) void x_display_surface(cairo_surface_t *srf, struct window_x11 *win, const struct dimensions *dim)