]> 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 046894f7e8815c2a90864cead486c3ac1c2163d7..c6aab7d6351a32ba35775e8524716873b193e540 100644 (file)
@@ -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;
        }