- summary: PAtch for xon_x11 in compiz mode --> Patch for con_x11 in compiz mode
The patch below allows to work in compiz/cairo-dock environement, for some reason too manu ConfigureNotify events are sent and efte will uses then only if actual resizing happend
--- con_x11.cpp.orig 2008-11-29 14:06:27.000000000 -0500
+++ con_x11.cpp 2008-11-29 14:07:07.000000000 -0500
@@ -1005,7 +1005,7 @@
Refresh = 0;
}
-void ResizeWindow(int ww, int hh) {
+int ResizeWindow(int ww, int hh) {
int ox = ScreenCols;
int oy = ScreenRows;
ww /= FontCX;
@@ -1023,7 +1023,9 @@
UpdateWindow(0, oy * FontCY,
ScreenCols * FontCX, (ScreenRows - oy) * FontCY);
Refresh = 0;
+ return 1;
}
+ return 0;
}
static struct {
@@ -1376,9 +1378,10 @@
XCheckTypedWindowEvent(display, win,
ConfigureNotify, &event))
XSync(display, 0);
- ResizeWindow(configureEvent->width, configureEvent->height);
- Event->What = evCommand;
- Event->Msg.Command = cmResize;
+ if (ResizeWindow(configureEvent->width, configureEvent->height)) {
+ Event->What = evCommand;
+ Event->Msg.Command = cmResize;
+ }
break;
case ButtonPress:
case ButtonRelease: