Skip to content

[Bug]: Frameless window is not draggable when running MAS build #37414

Closed

Description

@streamer45

Preflight Checklist

Electron Version

23.1.1

What operating system are you using?

macOS

Operating System Version

macOS Big Sur

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

22.3.1

Expected Behavior

Window should be draggable.

Actual Behavior

Window is not draggable.

Testcase Gist URL

https://gist.github.com/1387d3e19cbf2717cd21bbf3befaf159

Additional Information

To be noted, dragging works as expected on standard Electron builds but consistently fails when using Mac Apple Store builds (>= v23).

@nornagon I understand you've been working on some related issues recently, please let me know if this is a known/fixed issue and I'll close this one, thanks!

Activity

  1. added
    has-repro-gist
    on Feb 27, 2023
  2. moved this to Unsorted Items in 24-x-yon Feb 27, 2023
  3. georgexu99 commented on Feb 28, 2023

    @georgexu99
    Contributor

    Thanks for logging this issue!

    I tried reproducing it (albeit with ventura vs big sur) and couldn't reproduce the behaviour, using the test case in the description. Could you let me know if it's still reproducible on your end, and if so, attach a video? Thanks!!

  4. streamer45 commented on Feb 28, 2023

    @streamer45
    Author

    @georgexu99 Thanks for having a look. I had at least one report from a more recent macOS version but need to confirm whether that was Monterey or Ventura.

    Also it actually seems like the window is draggable from very specific regions (top right and left corners) but clearly not working consistently as I'd expect.

    out.mp4
  5. streamer45 commented on Feb 28, 2023

    @streamer45
    Author

    I thought about that originally but if that was the case I'd expect it to work consistently between builds of the same Electron version but that's not the case. Also the reproducer is a dead simple draggable body element with nothing else in the page, no overlap or anything of the kind.

    Honestly I don't even know what's the actual difference between a MAS build and a standard MacOS build for the same version and architecture but from what I could test that's making a big difference because it's working just fine using any other build type.

  6. nornagon commented on Mar 1, 2023

    @nornagon
    Contributor

    Yeah, I can repro this on v23.1.1-mas-arm64 on macOS Monterey 12.6.3.

  7. added
    status/confirmed
    on Mar 1, 2023
  8. nornagon commented on Mar 1, 2023

    @nornagon
    Contributor

    Looks like it's this patch causing the issue: https://github.com/electron/electron/blob/main/patches/chromium/mas_disable_custom_window_frame.patch, introduced here: #21573.

    This is triggered by #35603, which changed our draggable region impl to depend on this custom window frame view.

  9. moved this from Unsorted Items to Blocks Stable in 24-x-yon Mar 1, 2023
  10. moved this from Blocks Stable to Fixed for Next Release in 24-x-yon Mar 8, 2023
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

    23-x-y24-x-ybug 🪲has-repro-gistplatform/macOSstatus/confirmed

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions