added setInputFocus
fluxgen fluxgen
2 files changed,
9 insertions(+),
5 deletions(-)
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ m_height = 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) {
M
src/FbTk/FbWindow.hh
→
src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ virtual void resize(unsigned int width, unsigned int height);
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