Skip to content

fix: avoid resize jitter in opaque frameless X11 windows - #52867

Closed
otanim wants to merge 2 commits into
electron:mainfrom
otanim:fix/linux-opaque-frameless-resize-jitter
Closed

otanim wants to merge 2 commits into
electron:mainfrom
otanim:fix/linux-opaque-frameless-resize-jitter

Conversation

@otanim

@otanim otanim commented Aug 16, 2026 •

Copy link
Copy Markdown

Description of Change

Opaque frameless X11 windows became translucent native widgets when OpaqueFrameView was replaced by ElectronFrameViewLinux. On GNOME/X11, these ARGB GPU-composited windows can visibly lag behind their native bounds during fast interactive resizing.

This change keeps opaque frameless X11 windows on the system visual, matching Electron's pre-43 behavior. It disables client-frame shadow insets for that path and relies on the internal resize band introduced by #52740. Genuine transparent: true windows and Wayland CSD windows remain translucent.

Relationships and dependencies

This is therefore stacked on #52740. It should be rebased onto main after that dependency lands.

Standalone reproduction: https://gist.github.com/otanim/12c2cece789b68d04c271b96bfc41b68

Validation performed on Ubuntu 22.04.5, GNOME Shell 42.9, X11, Intel Meteor Lake-P / Intel Arc Graphics, Mesa 23.2.1:

  • Bisected the first bad release to 43.0.0-alpha.4; alpha.3 is repeatedly smooth.
  • Confirmed current main plus fix: transparent windows can be resized on Linux #52740 still jitters before this change.
  • Confirmed the proposed policy preview resizes smoothly during repeated fast vertical and diagonal resizing, with native edge and corner resize working.
  • Verified the opaque path changes from depth-32 ARGB to depth-24 with a full opaque region.
  • Verified transparent: true remains depth-32 ARGB.
  • Verified source formatting with git diff --check.

The compositor presentation behavior is not practical to assert in Electron's existing automated/headless tests. A standalone reproduction and the complete version/isolation matrix are attached to the linked issue.

Checklist

The unchecked build/test items remain intentional and accurate. The exact source policy was validated in a binary-level preview, but a full Electron source build and suite have not yet been run.

Release Notes

Notes: Fixed visual jitter while interactively resizing opaque frameless windows on Linux/X11.

@welcome

welcome Bot commented Aug 16, 2026

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

Semantic PR titles

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Commit signing

This repo enforces commit signatures for all incoming PRs.
To sign your commits, see GitHub's documentation on Telling Git about your signing key.

PR tips

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 16, 2026
@otanim

otanim commented Aug 16, 2026 •

Copy link
Copy Markdown
Author

Additional triage context after a broader search of open and closed Electron issues:

I did not find an earlier report matching the Electron 43+, Linux/X11, opaque-frameless interactive-resize jitter tracked by #52866. The PR description now records these relationships, the originating #51161 refactor, and the required #52740 dependency explicitly.

@otanim
otanim marked this pull request as ready for review August 16, 2026 18:10
@codebytere codebytere added the ai-pr PR that has been determined to be completely or majority untested and ai generated label Aug 16, 2026
@electron-issue-triage

Copy link
Copy Markdown

AI PR Detected

Hello @otanim. Due to the high amount of AI spam PRs we receive, if a PR is detected to be majority AI-generated without disclosure and untested, we will automatically close the PR.

We welcome the use of AI tools, as long as the PR meets our quality standards and has clearly been built and tested. If you believe your PR was closed in error, we welcome you to resubmit. However, please read our CONTRIBUTING.md and AI Tool Policy carefully before reopening. Thanks for your contribution.

@otanim

otanim commented Aug 17, 2026 •

Copy link
Copy Markdown
Author

I'd appreciated instead of closing the PR and marking it as "spam", elaborate the issue, so i wouldn't have to recreate a new PR. Using a label-based automation itself is a sort of spam-rejection of PRs, @codebytere .

I could simply use 42.* which essentially fixes the issue but I decided to help you fix issues that was caused due to careless commit that was merged to begin with which i believe is also causing general performance issues (i.e. CPU overheating).

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

Labels

ai-pr PR that has been determined to be completely or majority untested and ai generated new-pr 🌱 PR opened recently

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opaque frameless windows jitter during native interactive resize with default ANGLE/OpenGL on Linux/X11

3 participants