From: Dana Jansens Date: Fri, 16 May 2003 18:34:29 +0000 (+0000) Subject: dockapps are ObWindows now. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a0691941e88ca8a8388fe17971be637e3aa3d835;p=chaz%2Fopenbox dockapps are ObWindows now. set the type when creating new dockapps. --- diff --git a/openbox/dock.c b/openbox/dock.c index 6e45850e..b25c7e49 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -50,6 +50,7 @@ void dock_add(Window win, XWMHints *wmhints) 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; diff --git a/openbox/dock.h b/openbox/dock.h index ef770769..fdfaaf05 100644 --- a/openbox/dock.h +++ b/openbox/dock.h @@ -39,6 +39,8 @@ typedef struct Dock { } Dock; typedef struct DockApp { + ObWindow obwin; + int ignore_unmaps; Window icon_win; diff --git a/openbox/event.c b/openbox/event.c index 732857e0..f55950b5 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1007,6 +1007,7 @@ static void event_handle_dockapp(DockApp *app, XEvent *e) dock_app_drag(app, &e->xmotion); break; case UnmapNotify: + g_message("Unmap"); if (app->ignore_unmaps) { app->ignore_unmaps--; break; @@ -1014,6 +1015,7 @@ static void event_handle_dockapp(DockApp *app, XEvent *e) dock_remove(app, TRUE); break; case DestroyNotify: + g_message("Destroy"); dock_remove(app, FALSE); break; case ReparentNotify: