# HG changeset patch # User John Tsiombikas # Date 1454133487 -7200 # Node ID b0081a0c211f12204f629e6c9ea2bd2db08dbc7d # Parent 03ca0fd499165a887a93eb213d25c6f5e8539958 damage issues diff -r 03ca0fd49916 -r b0081a0c211f src/cwin.cc --- a/src/cwin.cc Sat Jan 30 07:48:51 2016 +0200 +++ b/src/cwin.cc Sat Jan 30 07:58:07 2016 +0200 @@ -36,8 +36,10 @@ return; } + XGetWindowAttributes(dpy, cwin->xwin, &cwin->attr); + // create the damage structure to track dirty regions in this window - if(!cwin->damage) { + if(!cwin->damage && cwin->attr.c_class != InputOnly) { cwin->damage = XDamageCreate(dpy, cwin->xwin, XDamageReportNonEmpty); } diff -r 03ca0fd49916 -r b0081a0c211f src/main.cc --- a/src/main.cc Sat Jan 30 07:48:51 2016 +0200 +++ b/src/main.cc Sat Jan 30 07:58:07 2016 +0200 @@ -208,9 +208,8 @@ { //log_debug("manage_window %u\n", xwin); CompWindow *cwin = new CompWindow(xwin); - XGetWindowAttributes(dpy, xwin, &cwin->attr); + add_window(cwin); cwin->mapped = cwin->attr.map_state != IsUnmapped; - add_window(cwin); } static void unmanage_window(Window xwin)