1
1
Index: compiz-0.9.4+bzr20110407/src/event.cpp
2
2
===================================================================
3
3
--- compiz-0.9.4+bzr20110407.orig/src/event.cpp 2011-04-09 13:34:38.000000000 +0800
4
+++ compiz-0.9.4+bzr20110407/src/event.cpp 2011-04-19 08:22:08.390800870 +0800
4
+++ compiz-0.9.4+bzr20110407/src/event.cpp 2011-04-23 01:16:33.859647189 +0800
5
5
@@ -1057,10 +1057,9 @@
6
6
if ((failure = !XGetWindowAttributes (priv->dpy, event->xcreatewindow.window, &wa)))
7
7
priv->setDefaultWindowAttributes (&wa);
113
113
Index: compiz-0.9.4+bzr20110407/src/window.cpp
114
114
===================================================================
115
115
--- compiz-0.9.4+bzr20110407.orig/src/window.cpp 2011-04-09 13:34:38.000000000 +0800
116
+++ compiz-0.9.4+bzr20110407/src/window.cpp 2011-04-19 08:17:27.993410453 +0800
117
@@ -765,11 +765,14 @@
116
+++ compiz-0.9.4+bzr20110407/src/window.cpp 2011-04-23 01:18:10.832128049 +0800
118
#include "privatewindow.h"
119
#include "privatescreen.h"
122
+XCreateWindow_wrapper (Display *display, Window parent, int x, int y,
123
+ unsigned int width, unsigned int height, unsigned int border_width,
124
+ int depth, unsigned int c_class, Visual *visual,
125
+ unsigned long valuemask, XSetWindowAttributes *attributes)
127
+ fprintf (stderr, "XCreateWindow request for %i %i %i %i d %i\n", x, y, width, height, depth);
128
+#undef XCreateWindow_wrapper
129
+ Window win = XCreateWindow (display, parent, x, y,
130
+ width, height, border_width, depth, c_class, visual,
131
+ valuemask, attributes);
132
+#define XCreateWindow XCreateWindow_wrapper
133
+ fprintf (stderr, "window 0x%x created\n", win);
138
PluginClassStorage::Indices windowPluginClassIndices (0);
141
@@ -765,11 +782,14 @@
119
143
PrivateWindow::updateFrameWindow ()
129
153
int x, y, width, height;
130
154
int bw = serverGeometry.border () * 2;
132
@@ -784,10 +787,12 @@
156
@@ -784,10 +804,12 @@
133
157
XMoveResizeWindow (screen->dpy (), frame, x, y, width, height);
142
166
XMapWindow (screen->dpy (), wrapper);
143
167
XMoveResizeWindow (screen->dpy (), wrapper, input.left, input.top,
144
168
serverGeometry.width (), serverGeometry.height ());
150
174
int x, y, width, height;
151
175
int bw = serverGeometry.border () * 2;
153
@@ -815,10 +821,12 @@
177
@@ -815,10 +838,12 @@
154
178
XMoveResizeWindow (screen->dpy (), frame, x, y, width, height);
163
187
XMapWindow (screen->dpy (), wrapper);
164
188
XMoveResizeWindow (screen->dpy (), wrapper, 0, 0,
165
189
serverGeometry.width (), serverGeometry.height ());
166
@@ -1167,6 +1175,8 @@
190
@@ -1167,6 +1192,8 @@
168
192
CompWindow::destroy ()
343
367
XSetWindowAttributes attr;
344
368
XWindowAttributes wa;
345
369
XWindowChanges xwc;
346
@@ -5742,10 +5788,14 @@
370
@@ -5742,10 +5805,14 @@
347
371
sg.width (), sg.height (), 0, attrib.depth,
348
372
InputOutput, visual, mask, &attr);
367
391
/* Reparent the client into the wrapper window */
368
392
XReparentWindow (dpy, id, wrapper, 0, 0);
370
@@ -5784,7 +5836,10 @@
394
@@ -5784,7 +5853,10 @@
371
395
XChangeWindowAttributes (dpy, id, CWEventMask | CWDontPropagate, &attr);
373
397
if (wa.map_state == IsViewable || shaded)
395
419
XUnmapWindow (dpy, frame);
397
421
XSelectInput (dpy, id, PropertyChangeMask | EnterWindowMask |
398
@@ -5882,6 +5940,9 @@
422
@@ -5882,6 +5957,9 @@
399
423
XMoveWindow (dpy, id, serverGeometry.x (), serverGeometry.y ());
405
429
XDestroyWindow (dpy, wrapper);
406
430
XDestroyWindow (dpy, frame);
432
Index: compiz-0.9.4+bzr20110407/include/core/window.h
433
===================================================================
434
--- compiz-0.9.4+bzr20110407.orig/include/core/window.h 2011-04-23 01:16:33.531645567 +0800
435
+++ compiz-0.9.4+bzr20110407/include/core/window.h 2011-04-23 01:16:33.867647229 +0800
440
+Window XCreateWindow_wrapper (Display *display, Window parent, int x, int y,
441
+ unsigned int width, unsigned int height, unsigned int border_width,
442
+ int depth, unsigned int c_class, Visual *visual,
443
+ unsigned long valuemask, XSetWindowAttributes *attributes);
445
+#define XCreateWindow XCreateWindow_wrapper