Skip to content

[Bug]: Frameless window can't be resized while cursor is next to but outside of window #40505

@rzhao271

Description

@rzhao271

Preflight Checklist

Electron Version

28.0.0-beta.3

What operating system are you using?

Windows

Operating System Version

Windows 11 10.0.22621

What arch are you using?

x64

Last Known Working Electron version

N/A

Expected Behavior

When I place my cursor to the right of the right border of a frameless Electron window, I expect for the cursor to change to a resize one.

Actual Behavior

When I place my cursor to the right of the right border of a frameless Electron window, the cursor does not change to a resize one.

Testcase Gist URL

https://gist.github.com/rzhao271/a267df622a0f62f71b1e47e45d1b66fc

Additional Information

Downstream issue: microsoft/vscode#185249

This problem does not reproduce in Chrome with a PWA, or on Edge.
This problem does not reproduce with an Electron window that contains a frame.

I'm unsure how an Electron window with a frame seems to have a resize area that extends beyond the borders of the window, but I'd prefer if a frameless Electron window did the same thing so that a user can resize a frameless Electron application more easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions