From b764f828b377b2bb2f703824a5075f2ba62cb368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Mon, 31 Jan 2022 16:43:55 +0100 Subject: [PATCH] Fix status bar disappearing upon returning from full screen --- src/win/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win.c b/src/win/win.c index 801c32ca5..66cf8a85e 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -1140,10 +1140,10 @@ plat_setfullscreen(int on) /* Render window. */ MoveWindow(hwndRender, 0, hide_tool_bar ? 0 : tbar_height, temp_x, temp_y, TRUE); - GetWindowRect(hwndRender, &rect); /* Status bar. */ - MoveWindow(hwndSBAR, 0, rect.bottom, temp_x, sbar_height, TRUE); + GetClientRect(hwndMain, &rect); + MoveWindow(hwndSBAR, 0, rect.bottom - sbar_height, temp_x, sbar_height, TRUE); if (mouse_capture) ClipCursor(&rect);