From fa0e229e7228129099f3e772e0b2844a3f146240 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 31 Mar 2013 12:43:35 +0200 Subject: Missing file in last commit (focusEvents) --- plugingui/window.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugingui/window.cc') diff --git a/plugingui/window.cc b/plugingui/window.cc index f524ee9..7dabb4c 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -57,6 +57,7 @@ GUI::Window::Window(GlobalContext *gctx) refcount = 0; _keyboardFocus = this; _buttonDownFocus = NULL; + _mouseFocus = NULL; #ifdef X11 native = new NativeWindowX11(gctx, this); @@ -197,3 +198,13 @@ void GUI::Window::setButtonDownFocus(GUI::Widget *widget) _buttonDownFocus = widget; native->grabMouse(widget != NULL); } + +GUI::Widget *GUI::Window::mouseFocus() +{ + return _mouseFocus; +} + +void GUI::Window::setMouseFocus(GUI::Widget *widget) +{ + _mouseFocus = widget; +} -- cgit v1.2.3