]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/windows/window.cpp
Track the currently focused window in Display
[libs/gui.git] / source / graphics / windows / window.cpp
index 8d7a342621635dd3e3c738abad67939ddf5c8ac0..c6aab7d6351a32ba35775e8524716873b193e540 100644 (file)
@@ -174,7 +174,7 @@ bool Window::event(const Event &evnt)
        case WM_RBUTTONUP:
        case WM_MOUSEWHEEL:
        case WM_MOUSEMOVE:
-       case WM_TOUCHMOVE:
+       case WM_TOUCH:
                signal_input_event.emit(evnt);
                break;
        case WM_SIZE:
@@ -201,6 +201,12 @@ bool Window::event(const Event &evnt)
                        signal_expose.emit(update_rect.left, update_rect.top, width, height, evnt);
                }
                break;
+       case WM_SETFOCUS:
+               signal_got_focus.emit();
+               break;
+       case WM_KILLFOCUS:
+               signal_lost_focus.emit();
+               break;
        default:
                return false;
        }