dockapps are ObWindows now.
set the type when creating new dockapps.
This commit is contained in:
parent
e4c662ea0b
commit
a0691941e8
3 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -39,6 +39,8 @@ typedef struct Dock {
|
|||
} Dock;
|
||||
|
||||
typedef struct DockApp {
|
||||
ObWindow obwin;
|
||||
|
||||
int ignore_unmaps;
|
||||
|
||||
Window icon_win;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue