all repos — openbox @ dc532b7661e0d9bc72c25b74fa987ce50f3f0b31

openbox fork - make it a bit more like ryudo

change the unmanae ordeer around to have the callbacks fire last
Dana Jansens danakj@orodu.net
commit

dc532b7661e0d9bc72c25b74fa987ce50f3f0b31

parent

eccab56a6c06c9c2f5764d7913fd794961f60214

1 files changed, 7 insertions(+), 6 deletions(-)

jump to
M src/screen.ccsrc/screen.cc

@@ -556,12 +556,6 @@ Py_DECREF((PyObject*)data);

Openbox::instance->bindings()->grabButtons(false, client); - // remove from the stacking order - _stacking.remove(client); - - // unfocus the client - client->unfocus(); - // remove from the wm's map Openbox::instance->removeClient(client->window()); Openbox::instance->removeClient(frame->window());

@@ -592,8 +586,15 @@

delete client->frame; client->frame = 0; + // remove from the stacking order + _stacking.remove(client); + // remove from the screen's list clients.remove(client); + + // unfocus the client (calls the focus callbacks) + client->unfocus(); + delete client; // update the root properties