diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 8 |
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 | ||
3872 | void FluxboxWindow::close() { | 3872 | void 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 | ||
3877 | void FluxboxWindow::kill() { | 3879 | void 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 | ||