xglcomp

diff src/main.cc @ 8:b0081a0c211f

damage issues
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Jan 2016 07:58:07 +0200
parents 03ca0fd49916
children 245dd960f0b3
line diff
     1.1 --- a/src/main.cc	Sat Jan 30 07:48:51 2016 +0200
     1.2 +++ b/src/main.cc	Sat Jan 30 07:58:07 2016 +0200
     1.3 @@ -208,9 +208,8 @@
     1.4  {
     1.5  	//log_debug("manage_window %u\n", xwin);
     1.6  	CompWindow *cwin = new CompWindow(xwin);
     1.7 -	XGetWindowAttributes(dpy, xwin, &cwin->attr);
     1.8 +	add_window(cwin);
     1.9  	cwin->mapped = cwin->attr.map_state != IsUnmapped;
    1.10 -	add_window(cwin);
    1.11  }
    1.12  
    1.13  static void unmanage_window(Window xwin)