set the type when creating new dockapps.
XWindowAttributes attrib;
app = g_new0(DockApp, 1);
+ app->obwin.type = Window_DockApp;
app->win = win;
app->icon_win = (wmhints->flags & IconWindowHint) ?
wmhints->icon_window : win;
} Dock;
typedef struct DockApp {
+ ObWindow obwin;
+
int ignore_unmaps;
Window icon_win;
dock_app_drag(app, &e->xmotion);
break;
case UnmapNotify:
+ g_message("Unmap");
if (app->ignore_unmaps) {
app->ignore_unmaps--;
break;
dock_remove(app, TRUE);
break;
case DestroyNotify:
+ g_message("Destroy");
dock_remove(app, FALSE);
break;
case ReparentNotify: