From 2737e94b242ffc38f4d6760512ba794755603bf7 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 2 Jul 2003 05:17:30 +0000 Subject: added setInputFocus --- src/FbTk/FbWindow.cc | 10 +++++++--- src/FbTk/FbWindow.hh | 4 ++-- 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.21 2003/06/24 10:12:57 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.22 2003/07/02 05:17:30 fluxgen Exp $ #include "FbWindow.hh" #include "EventManager.hh" @@ -179,11 +179,15 @@ void FbWindow::moveResize(int x, int y, unsigned int width, unsigned int height) } void FbWindow::lower() { - XLowerWindow(s_display, m_window); + XLowerWindow(s_display, window()); } void FbWindow::raise() { - XRaiseWindow(s_display, m_window); + XRaiseWindow(s_display, window()); +} + +void FbWindow::setInputFocus(int revert_to, int time) { + XSetInputFocus(s_display, window(), revert_to, time); } void 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.18 2003/06/24 10:12:57 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.19 2003/07/02 05:17:30 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH @@ -88,7 +88,7 @@ public: virtual void moveResize(int x, int y, unsigned int width, unsigned int height); virtual void lower(); virtual void raise(); - + void setInputFocus(int revert_to, int time); /// defines a cursor for this window void setCursor(Cursor cur); /// uses the parents cursor instead -- cgit v0.11.2