X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=da3a8e323713b3999bd68419f970ad4b74bdf500;hb=077cd7f94440a5001d62a2df03131a2c33a8c3e2;hp=4d3010dc23d6a8ab9cf218c30cd4eb1a58266e75;hpb=cfe3dc9ec4d582cf71df06d45e6045b3e32464af;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 4d3010dc..da3a8e32 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1,5 +1,6 @@ #include "client.h" #include "screen.h" +#include "moveresize.h" #include "prop.h" #include "extensions.h" #include "frame.h" @@ -237,8 +238,6 @@ void client_manage(Window window) client_showhide(self); - dispatch_client(Event_Client_Mapped, self, 0, 0); - /* focus the new window? */ if (ob_state != State_Starting && client_normal(self)) { if (config_focus_new) @@ -265,6 +264,8 @@ void client_manage(Window window) /* make sure the window is visible */ client_move_onscreen(self); + dispatch_client(Event_Client_Mapped, self, 0, 0); + g_message("Managed window 0x%lx", window); } @@ -331,6 +332,9 @@ void client_unmanage(Client *self) } } + if (moveresize_client == self) + moveresize_end(TRUE); + if (focus_client == self) client_unfocus(self);