all repos — openbox @ 33ddfc7664d5988c370303217e5f1e3fdb431dd9

openbox fork - make it a bit more like ryudo

desktops
Dana Jansens danakj@orodu.net
commit

33ddfc7664d5988c370303217e5f1e3fdb431dd9

parent

e9b48d2f1d532ddc236b23c69a8970eba7735f89

1 files changed, 5 insertions(+), 4 deletions(-)

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

@@ -502,8 +502,9 @@ Openbox::instance->addClient(client->frame->handle(), client);

Openbox::instance->addClient(client->frame->grip_left(), client); Openbox::instance->addClient(client->frame->grip_right(), client); - // XXX: if on the current desktop.. - client->frame->show(); + // if on the current desktop.. (or all desktops) + if (client->desktop() == _desktop || client->desktop() == (signed)0xffffffff) + client->frame->show(); // XXX: handle any requested states such as maximized

@@ -641,9 +642,9 @@

OBClient::List::iterator it, end = clients.end(); for (it = clients.begin(); it != end; ++it) { if ((*it)->desktop() == old) { - // XXX hide + (*it)->frame->hide(); } else if ((*it)->desktop() == _desktop) { - // XXX show + (*it)->frame->show(); } } }