summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthiasWM <visualc.git@matthiasm.com>2025-12-21 23:02:35 +0100
committerMatthiasWM <visualc.git@matthiasm.com>2025-12-21 23:02:35 +0100
commite55eabf69fca12611c769325f539e3d75d0badc1 (patch)
treecf7083b537d753bd595acd7e53168bf832239152
parent8ec5d86fe144528b47345d8defe1149a3b8deb87 (diff)
Win32: Add FL_APP_ACTIVATE and DEACTIVATE
-rw-r--r--src/Fl_win32.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index cad32aa1c..728e25557 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1466,7 +1466,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
if ((GetAsyncKeyState(VK_LWIN) | GetAsyncKeyState(VK_RWIN)) & ~1)
state |= FL_META;
Fl::e_state = state;
- return 0;
+ Fl::handle(FL_APP_ACTIVATE, nullptr);
+ } else {
+ Fl::handle(FL_APP_DEACTIVATE, nullptr);
}
break;