aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-08 22:49:12 (GMT)
committermarkt <markt>2007-07-08 22:49:12 (GMT)
commit595e3011704ceccbb5f22886f46ab7d05968e07b (patch)
tree176ff3d00af64b5161c533c10ac6aafaa7f8c462 /src/Ewmh.cc
parent899a21d45d5dded72ea19b7856626d9e0419be85 (diff)
downloadfluxbox-595e3011704ceccbb5f22886f46ab7d05968e07b.zip
fluxbox-595e3011704ceccbb5f22886f46ab7d05968e07b.tar.bz2
remove _NET_WM_DESKTOP, _NET_WM_STATE, and Gnome hints on client close
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index afa138c..be4e81a 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -369,8 +369,17 @@ void Ewmh::updateFocusedWindow(BScreen &screen, Window win) {
369 (unsigned char *)&win, 1); 369 (unsigned char *)&win, 1);
370} 370}
371 371
372// EWMH says, regarding _NET_WM_STATE and _NET_WM_DESKTOP
373// The Window Manager should remove the property whenever a window is withdrawn
374// but it should leave the property in place when it is shutting down
372void Ewmh::updateClientClose(WinClient &winclient){ 375void Ewmh::updateClientClose(WinClient &winclient){
373 updateClientList(winclient.screen()); 376 updateClientList(winclient.screen());
377 if (!winclient.screen().isShuttingdown()) {
378 XDeleteProperty(FbTk::App::instance()->display(), winclient.window(),
379 m_net_wm_state);
380 XDeleteProperty(FbTk::App::instance()->display(), winclient.window(),
381 m_net_wm_desktop);
382 }
374} 383}
375 384
376void Ewmh::updateClientList(BScreen &screen) { 385void Ewmh::updateClientList(BScreen &screen) {