hbl917070 / Tiefsee4

An open-source image viewer for Windows with powerful features and ease of use
https://hbl917070.github.io/aeropic/
MIT License
290 stars 12 forks source link

Bug: the mouse unable to trigger Autohided taskbar #50

Closed seaspeak closed 1 month ago

seaspeak commented 2 months ago

When Tiefsee window is maximized, if the taskbar is autohided, the mouse unable to trigger the taskbar by touching bottom edge of the screen.

hbl917070 commented 2 months ago

What is your Tiefsee version and OS version?

seaspeak commented 2 months ago

What is your Tiefsee version and OS version?

TieSee 4.2.3 Microsoft Store version Windows 10 Version 22H2 OS build 19045.4780

seaspeak commented 2 months ago

The nightly also had the autohiding taskbar issue.

hbl917070 commented 2 months ago

This is a very tricky issue, and it is caused by this piece of code.

protected override void WndProc(ref Message m) {
    // https://rjcodeadvance.com/final-modern-ui-aero-snap-window-resizing-sliding-menu-c-winforms/
    const int WM_NCCALCSIZE = 0x0083; // Standar Title Bar - Snap Window
    if (m.Msg == WM_NCCALCSIZE && m.WParam.ToInt32() == 1) { // Remove border and keep snap window
        return;
    }
}

I have two monitors. The problem exists on the main monitor, while the second monitor is fine. So, I think this is a bug in Windows itself. The taskbar is a system-level UI, and it should be on top. It’s strange that it gets covered by windows.

seaspeak commented 2 months ago

It seems like a lot of projects have encountered this issue, for example this fix: https://github.com/electron/electron/pull/25217