all repos — fluxbox @ 2737e94b242ffc38f4d6760512ba794755603bf7

custom fork of the fluxbox windowmanager

added setInputFocus
fluxgen fluxgen
commit

2737e94b242ffc38f4d6760512ba794755603bf7

parent

0703926d3a59e8979590e06930a7f25f6802138b

2 files changed, 9 insertions(+), 5 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/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.hhsrc/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