Skip to content

Fullscreen API click through with certain window options #4408

@Untriel

Description

@Untriel

Description

With both Frameless AND BackgoundType window options, the cursor clicks through the fullscreen (selecting the underlaying window/app if present).

Turning off either one of those corrects the behavior.

To Reproduce

  1. fresh project init. alpha 10
  2. use both window options
    app.Window.NewWithOptions(application.WebviewWindowOptions{
        Title:          "Window 1",
        URL:            "/",
        BackgroundType: application.BackgroundTypeTransparent,
        Frameless:      true,
    })
  1. add fullscreen api funtionality
<div id="app" class="container">

....

<button id="rfs">RFS</button>
const app = document.getElementById("app");
const rfs = document.getElementById("rfs");

rfs.addEventListener("click", () => {
    app.requestFullscreen();
});

Expected behaviour

Fullscreen should capture all mouse events

Screenshots

No response

Attempted Fixes

No response

System Details

Wails (v3.0.0-dev)  Wails Doctor 

# System 

┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Name              | Windows 10 Pro                                                                  |
| Version           | 2009 (Build: 26100)                                                             |
| ID                | 24H2                                                                            |
| Branding          | Windows 11 Pro                                                                  |
| Platform          | windows                                                                         |
| Architecture      | amd64                                                                           |
| Go WebView2Loader | true                                                                            |
| WebView2 Version  | 137.0.3296.93                                                                   |
| CPU               | AMD Ryzen 7 7800X3D 8-Core Processor                                            |
| GPU 1             | AMD Radeon RX 7800 XT (Advanced Micro Devices, Inc.) - Driver: 32.0.21013.1000  |
| Memory            | 32GB                                                                            |
└─────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment 

┌─────────────────────────────────────────────────────────┐
| Wails CLI    | v3.0.0-dev                               |
| Go Version   | go1.24.1                                 |
| Revision     | 568aa6602f1cec034905711e12ee5b0c92083570 |
| Modified     | true                                     |
| -buildmode   | exe                                      |
| -compiler    | gc                                       |
| CGO_CFLAGS   |                                          |
| CGO_CPPFLAGS |                                          |
| CGO_CXXFLAGS |                                          |
| CGO_ENABLED  | 1                                        |
| CGO_LDFLAGS  |                                          |
| GOAMD64      | v1                                       |
| GOARCH       | amd64                                    |
| GOOS         | windows                                  |
| vcs          | git                                      |
| vcs.modified | true                                     |
| vcs.revision | 568aa6602f1cec034905711e12ee5b0c92083570 |
| vcs.time     | 2025-07-06T12:33:06Z                     |
└─────────────────────────────────────────────────────────┘

# Dependencies 

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

# Checking for issues 

 SUCCESS  No issues found

# Diagnosis 

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingP2Medium priorityTODOThe issue is ready to be developedWindowsv3

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions