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;
|
XWindowAttributes attrib;
|
||||||
|
|
||||||
app = g_new0(DockApp, 1);
|
app = g_new0(DockApp, 1);
|
||||||
|
app->obwin.type = Window_DockApp;
|
||||||
app->win = win;
|
app->win = win;
|
||||||
app->icon_win = (wmhints->flags & IconWindowHint) ?
|
app->icon_win = (wmhints->flags & IconWindowHint) ?
|
||||||
wmhints->icon_window : win;
|
wmhints->icon_window : win;
|
||||||
|
|
|
@ -39,6 +39,8 @@ typedef struct Dock {
|
||||||
} Dock;
|
} Dock;
|
||||||
|
|
||||||
typedef struct DockApp {
|
typedef struct DockApp {
|
||||||
|
ObWindow obwin;
|
||||||
|
|
||||||
int ignore_unmaps;
|
int ignore_unmaps;
|
||||||
|
|
||||||
Window icon_win;
|
Window icon_win;
|
||||||
|
|
|
@ -1007,6 +1007,7 @@ static void event_handle_dockapp(DockApp *app, XEvent *e)
|
||||||
dock_app_drag(app, &e->xmotion);
|
dock_app_drag(app, &e->xmotion);
|
||||||
break;
|
break;
|
||||||
case UnmapNotify:
|
case UnmapNotify:
|
||||||
|
g_message("Unmap");
|
||||||
if (app->ignore_unmaps) {
|
if (app->ignore_unmaps) {
|
||||||
app->ignore_unmaps--;
|
app->ignore_unmaps--;
|
||||||
break;
|
break;
|
||||||
|
@ -1014,6 +1015,7 @@ static void event_handle_dockapp(DockApp *app, XEvent *e)
|
||||||
dock_remove(app, TRUE);
|
dock_remove(app, TRUE);
|
||||||
break;
|
break;
|
||||||
case DestroyNotify:
|
case DestroyNotify:
|
||||||
|
g_message("Destroy");
|
||||||
dock_remove(app, FALSE);
|
dock_remove(app, FALSE);
|
||||||
break;
|
break;
|
||||||
case ReparentNotify:
|
case ReparentNotify:
|
||||||
|
|
Loading…
Reference in a new issue