X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=3389fdc6f10c374069b5247561f426a77749f450;hb=506122a110035f810c7d25225661973845a59c62;hp=dd25e4d2d4a7861e3e5d0d16acfd33aca6b873f9;hpb=d5eacc5642ad8f5611f7c946d734863bc8898513;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index dd25e4d2..3389fdc6 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1,4 +1,5 @@ #include "client.h" +#include "slit.h" #include "startup.h" #include "screen.h" #include "moveresize.h" @@ -176,7 +177,7 @@ void client_manage(Window window) XEvent e; XWindowAttributes attrib; XSetWindowAttributes attrib_set; -/* XWMHints *wmhint; */ + XWMHints *wmhint; grab_server(TRUE); @@ -197,18 +198,18 @@ void client_manage(Window window) return; /* don't manage it */ } -/* /\* is the window a docking app *\/ + /* is the window a docking app */ if ((wmhint = XGetWMHints(ob_display, window))) { if ((wmhint->flags & StateHint) && wmhint->initial_state == WithdrawnState) { - /\* XXX: make dock apps work! *\/ + slit_add(window, wmhint); grab_server(FALSE); XFree(wmhint); return; } XFree(wmhint); } -*/ + g_message("Managing window: %lx", window); /* choose the events we want to receive on the CLIENT window */