Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocked taskbar behavior after maximizing #22

Open
1280103995 opened this issue Jan 5, 2024 · 2 comments
Open

Blocked taskbar behavior after maximizing #22

1280103995 opened this issue Jan 5, 2024 · 2 comments

Comments

@1280103995
Copy link

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.

@melak47
Copy link
Owner

melak47 commented Jan 24, 2024

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).

@Stehfyn
Copy link

Stehfyn commented Sep 22, 2024

From older chromium sources:

Tried simply adding rect.bottom--; after the following

rect = monitor_info.rcWork;

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

untitled.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants