Skip to content

[v3] When HiddenOnTaskbar is set to true, mouse clicks behave abnormally #4761

Description

@sugar-is-everythong

Description

When HiddenOnTaskbar is set to true, using Windows+D or Alt+Tab to switch windows causes abnormal click events on the entire screen. It affects the entire screen, but switching windows with the keyboard works normally. However, clicking on the Wails window again will cause the issue to reoccur, making it unclickable

To Reproduce

After creating a project using the official CLI, just add one HiddenOnTaskbar: true to make it appear

Expected behaviour

Hope HiddenOnTaskbar: true can be used normally

Screenshots

No response

Attempted Fixes

If setting ExStyle to w32.WS_EX_TOOLWINDOW can solve this situation, but it will also cause some window issues, such as certain windows failing to deactivate

System Details

┌───────────────────────────────────────────────────────────────────────────────────────────────────┐
| Name              | Windows 10 IoT Enterprise LTSC 2021                                           |
| Version           | 2009 (Build: 19044)                                                           |
| ID                | 21H2                                                                          |
| Branding          | Windows 10 IoT 企业版 LTSC                                                    |
| Platform          | windows                                                                       |
| Architecture      | amd64                                                                         |
| Go WebView2Loader | true                                                                          |
| WebView2 Version  | 142.0.3595.94                                                                 |
| CPU               | Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz                                       |
| GPU 1             | AMD Radeon HD 8350 (Advanced Micro Devices, Inc.) - Driver: 15.201.1101.1001  |
| GPU 2             | GameViewer Virtual Display Adapter (GameViewer) - Driver: 17.13.25.697        |
| Memory            | 32GB                                                                          |
└───────────────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment 

┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.41                                                                    |
| Go Version     | go1.25.4                                                                           |
| -buildmode     | exe                                                                                |
| -compiler      | gc                                                                                 |
| CGO_ENABLED    | 0                                                                                  |
| DefaultGODEBUG | containermaxprocs=0,decoratemappings=0,tlssha1=1,updatemaxprocs=0,x509sha256skid=0 |
| GOAMD64        | v1                                                                                 |
| GOARCH         | amd64                                                                              |
| GOOS           | windows                                                                            |
└─────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies 

┌────────────────────────────────────────────┐
| npm                        | 11.4.2        |
| NSIS                       | Not Installed |
| MakeAppx.exe (Windows SDK) | Not Installed |
| MSIX Packaging Tool        | Not Installed |
| SignTool.exe (Windows SDK) | Not Installed |
|                                            |
└───────── * - Optional Dependency ──────────┘

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingWindowsawaiting feedbackMore information is required from the requestorv3

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions