diff options
author | rathnor <rathnor> | 2003-07-21 15:26:57 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-21 15:26:57 (GMT) |
commit | 9932b880490d92d12bc07e60e1b7f0c59f29d0fc (patch) | |
tree | 0e1b1ccf13625e4197d563545636f34efb7db0be /src/WinClient.cc | |
parent | 370a9d474475d708f03795665d915f314f1665fa (diff) | |
download | fluxbox_pavel-9932b880490d92d12bc07e60e1b7f0c59f29d0fc.zip fluxbox_pavel-9932b880490d92d12bc07e60e1b7f0c59f29d0fc.tar.bz2 |
fix focus properly
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index 416dd63..092c10d 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: WinClient.cc,v 1.18 2003/07/20 18:05:39 rathnor Exp $ | 22 | // $Id: WinClient.cc,v 1.19 2003/07/21 15:26:56 rathnor Exp $ |
23 | 23 | ||
24 | #include "WinClient.hh" | 24 | #include "WinClient.hh" |
25 | 25 | ||
@@ -138,9 +138,9 @@ void WinClient::updateRect(int x, int y, | |||
138 | 138 | ||
139 | } | 139 | } |
140 | 140 | ||
141 | void WinClient::sendFocus() { | 141 | bool WinClient::sendFocus() { |
142 | if (!send_focus_message) | 142 | if (!send_focus_message) |
143 | return; | 143 | return false; |
144 | 144 | ||
145 | Display *disp = FbTk::App::instance()->display(); | 145 | Display *disp = FbTk::App::instance()->display(); |
146 | // setup focus msg | 146 | // setup focus msg |
@@ -157,6 +157,7 @@ void WinClient::sendFocus() { | |||
157 | ce.xclient.data.l[4] = 0l; | 157 | ce.xclient.data.l[4] = 0l; |
158 | // send focus msg | 158 | // send focus msg |
159 | XSendEvent(disp, window(), false, NoEventMask, &ce); | 159 | XSendEvent(disp, window(), false, NoEventMask, &ce); |
160 | return true; | ||
160 | } | 161 | } |
161 | 162 | ||
162 | void WinClient::sendClose() { | 163 | void WinClient::sendClose() { |