X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=d42a962a8f9bcca3f05a212a4633f9b557c08394;hb=9e6b0d5a8d0226232802bdece77665b167f98dae;hp=9fd1416e39d342fdf31096caeafb0ef7e2cb0930;hpb=a765df7fa67ec4346179ade2cfb8f337286c88d7;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 9fd1416e..d42a962a 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1092,9 +1092,16 @@ void Client::clientMessageHandler(const XClientMessageEvent &e) setDesktop(openbox->screen(_screen)->desktop()); if (_shaded) shade(false); - // XXX: deiconify focus(); openbox->screen(_screen)->raiseWindow(this); + } else if (e.message_type == otk::Property::atoms.openbox_active_window) { + if (_iconic) + setDesktop(openbox->screen(_screen)->desktop()); + if (e.data.l[0] && _shaded) + shade(false); + focus(); + if (e.data.l[1]) + openbox->screen(_screen)->raiseWindow(this); } } @@ -1614,7 +1621,6 @@ void Client::installColormap(bool install) const { XWindowAttributes wa; if (XGetWindowAttributes(**otk::display, _window, &wa)) { - printf("%snstalling Window Colormap 0x%lx!\n", install ? "I" : "Uni", _window); if (install) XInstallColormap(**otk::display, wa.colormap); else