aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.hh
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.hh
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.hh')
-rw-r--r--src/WinClient.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh
index 3a9d792..4808807 100644
--- a/src/WinClient.hh
+++ b/src/WinClient.hh
@@ -53,6 +53,9 @@ public:
53 bool sendFocus(); // returns whether we sent a message or not 53 bool sendFocus(); // returns whether we sent a message or not
54 // i.e. whether we assume the focus will get taken 54 // i.e. whether we assume the focus will get taken
55 bool acceptsFocus() const; // will this window accept focus (according to hints) 55 bool acceptsFocus() const; // will this window accept focus (according to hints)
56 void setInputFocus(int revert_to, int time);
57 inline bool isWaitingFocus() { return m_waiting_focus; }
58 void receivedFocus() { m_waiting_focus = false; m_focussig.notify(); }
56 void sendClose(bool forceful = false); 59 void sendClose(bool forceful = false);
57 // not aware of anything that makes this false at present 60 // not aware of anything that makes this false at present
58 inline bool isClosable() const { return true; } 61 inline bool isClosable() const { return true; }
@@ -197,6 +200,7 @@ private:
197 // or indicates that we are modal if don't have any transients 200 // or indicates that we are modal if don't have any transients
198 int m_modal; 201 int m_modal;
199 bool send_focus_message, send_close_message; 202 bool send_focus_message, send_close_message;
203 bool m_waiting_focus;
200 204
201 int m_win_gravity; 205 int m_win_gravity;
202 206