aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-02-06 19:04:32 (GMT)
committermarkt <markt>2007-02-06 19:04:32 (GMT)
commit07ea9ec4b4a2c1252c64dc34438c4bdeb5e3331b (patch)
tree70a13ec7275abf62999528295623ab2ddaee4d71 /src/Window.cc
parentebd2fa9a99846381f3ef61f8b186f2c7373c419b (diff)
downloadfluxbox_pavel-07ea9ec4b4a2c1252c64dc34438c4bdeb5e3331b.zip
fluxbox_pavel-07ea9ec4b4a2c1252c64dc34438c4bdeb5e3331b.tar.bz2
closing a window from the workspace menu should close the chosen client,
rather than the active tab in the same window
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 1b3ef2f..c505edc 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3870,12 +3870,16 @@ void FluxboxWindow::sendConfigureNotify(bool send_to_netizens) {
3870 3870
3871 3871
3872void FluxboxWindow::close() { 3872void FluxboxWindow::close() {
3873 if (m_client) 3873 if (WindowCmd<void>::window() == this && WindowCmd<void>::client())
3874 WindowCmd<void>::client()->sendClose(false);
3875 else if (m_client)
3874 m_client->sendClose(false); 3876 m_client->sendClose(false);
3875} 3877}
3876 3878
3877void FluxboxWindow::kill() { 3879void FluxboxWindow::kill() {
3878 if (m_client) 3880 if (WindowCmd<void>::window() == this && WindowCmd<void>::client())
3881 WindowCmd<void>::client()->sendClose(true);
3882 else if (m_client)
3879 m_client->sendClose(true); 3883 m_client->sendClose(true);
3880} 3884}
3881 3885