aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-02 05:17:30 (GMT)
committerfluxgen <fluxgen>2003-07-02 05:17:30 (GMT)
commit2737e94b242ffc38f4d6760512ba794755603bf7 (patch)
tree7e710416f953b7c16af05ea4f33d3eb2c06206a1 /src/FbTk
parent0703926d3a59e8979590e06930a7f25f6802138b (diff)
downloadfluxbox-2737e94b242ffc38f4d6760512ba794755603bf7.zip
fluxbox-2737e94b242ffc38f4d6760512ba794755603bf7.tar.bz2
added setInputFocus
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc10
-rw-r--r--src/FbTk/FbWindow.hh4
2 files changed, 9 insertions, 5 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 587122e..509dd6c 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.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: FbWindow.cc,v 1.21 2003/06/24 10:12:57 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.22 2003/07/02 05:17:30 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -179,11 +179,15 @@ void FbWindow::moveResize(int x, int y, unsigned int width, unsigned int height)
179} 179}
180 180
181void FbWindow::lower() { 181void FbWindow::lower() {
182 XLowerWindow(s_display, m_window); 182 XLowerWindow(s_display, window());
183} 183}
184 184
185void FbWindow::raise() { 185void FbWindow::raise() {
186 XRaiseWindow(s_display, m_window); 186 XRaiseWindow(s_display, window());
187}
188
189void FbWindow::setInputFocus(int revert_to, int time) {
190 XSetInputFocus(s_display, window(), revert_to, time);
187} 191}
188 192
189void FbWindow::setCursor(Cursor cur) { 193void FbWindow::setCursor(Cursor cur) {
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index bf82324..88a00d8 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -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: FbWindow.hh,v 1.18 2003/06/24 10:12:57 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.19 2003/07/02 05:17:30 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -88,7 +88,7 @@ public:
88 virtual void moveResize(int x, int y, unsigned int width, unsigned int height); 88 virtual void moveResize(int x, int y, unsigned int width, unsigned int height);
89 virtual void lower(); 89 virtual void lower();
90 virtual void raise(); 90 virtual void raise();
91 91 void setInputFocus(int revert_to, int time);
92 /// defines a cursor for this window 92 /// defines a cursor for this window
93 void setCursor(Cursor cur); 93 void setCursor(Cursor cur);
94 /// uses the parents cursor instead 94 /// uses the parents cursor instead