Open 1280103995 opened 10 months ago
I think that's because windows treats any "popup" window that covers the entire screen (with no non-client area on screen) as a full-screen window (like a game in a borderless window).
Looking at the Discord app and Fork shows that when maximized,
these do not cover the entire screen -- they leave one or two pixels uncovered at the bottom of the screen.
Also, they do not use the WS_POPUP style, maybe they are doing something more like Custom Window Frame Using DWM.
However I'm not exactly sure how to accomplish that in practice.
Using SetWindowPos
to make the window a bit shorter when it gets maximized works,
but only if it's much shorter (leaving a gap of 10-20 pixels).
Tried simply adding rect.bottom--;
after the following
https://github.com/melak47/BorderlessWindow/blob/c86aa97aaaf5a3927794ea9ba73b6c8c82586da7/src/BorderlessWindow.cpp#L53
and got some movement; Taskbar set to AutoHide now activates, but still experiences #21
Hopefully others who pass by with more time than I can glean the feasibility of a minimum solution /main:third_party/angle/util/windows/win32/Win32Window.cpp /main:ui/views/win/fullscreen_handler.cc /main:ui/views/win/hwnd_message_handler.cc
https://github.com/user-attachments/assets/00bab9f7-716c-4f55-868f-e8e87eff4cab
After setting the taskbar to automatically hide, maximize the window, and then move the mouse to the bottom of the screen, the taskbar does not pop up.
If other applications are maximized, the taskbar will pop up.