summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-24 04:41:22 +0000
committerDana Jansens <danakj@orodu.net>2002-08-24 04:41:22 +0000
commit8344443c100387fd112508e1ed9ae679fea136bd (patch)
treecbace13936ee5c030d040cff55ec18e501a16508
parent57a46b4f0f4dd64b57333bad6f2f1f805584b4da (diff)
handle systray apps closing..
-rw-r--r--src/Screen.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index d92dec35..5441d0bb 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1342,7 +1342,7 @@ void BScreen::manageWindow(Window w) {
// is the window a KDE systray window?
Window systray;
if (xatom->getValue(w, XAtom::kde_net_wm_system_tray_window_for,
- XAtom::window, systray) && systray) {
+ XAtom::window, systray) && systray != None) {
addSystrayWindow(w);
return;
}
@@ -1381,6 +1381,15 @@ void BScreen::manageWindow(Window w) {
void BScreen::unmanageWindow(BlackboxWindow *w, bool remap) {
+ // is the window a KDE systray window?
+ Window systray;
+ if (xatom->getValue(w->getClientWindow(),
+ XAtom::kde_net_wm_system_tray_window_for,
+ XAtom::window, systray) && systray != None) {
+ removeSystrayWindow(w->getClientWindow());
+ return;
+ }
+
w->restore(remap);
// Remove the modality so that its parent won't try to re-focus the window