aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-07-20 07:15:59 (GMT)
committermarkt <markt>2006-07-20 07:15:59 (GMT)
commitf9ade8947c08a7f1a4485b44da2403a55a3c04e1 (patch)
tree793620785e0cae212af273681529415b57a5c8cf /src/WinClient.cc
parentf4d1af12083863f1aa63c88e3eb55a9317758fc1 (diff)
downloadfluxbox-f9ade8947c08a7f1a4485b44da2403a55a3c04e1.zip
fluxbox-f9ade8947c08a7f1a4485b44da2403a55a3c04e1.tar.bz2
properly revert focus when two windows close at the same time
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r--src/WinClient.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc
index 4e508fb..0eddac5 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -66,6 +66,7 @@ WinClient::WinClient(Window win, BScreen &screen, FluxboxWindow *fbwin):FbTk::Fb
66 m_modal(0), 66 m_modal(0),
67 send_focus_message(false), 67 send_focus_message(false),
68 send_close_message(false), 68 send_close_message(false),
69 m_waiting_focus(false),
69 m_win_gravity(0), 70 m_win_gravity(0),
70 m_title(""), m_icon_title(""), 71 m_title(""), m_icon_title(""),
71 m_class_name(""), m_instance_name(""), 72 m_class_name(""), m_instance_name(""),
@@ -188,6 +189,11 @@ bool WinClient::sendFocus() {
188 return true; 189 return true;
189} 190}
190 191
192void WinClient::setInputFocus(int revert_to, int time) {
193 FbTk::FbWindow::setInputFocus(revert_to, time);
194 m_waiting_focus = true;
195}
196
191void WinClient::sendClose(bool forceful) { 197void WinClient::sendClose(bool forceful) {
192 if (forceful || !send_close_message) 198 if (forceful || !send_close_message)
193 XKillClient(display(), window()); 199 XKillClient(display(), window());