Skip to content

electron apps: fix wayland window decorations#192659

Merged
amaxine merged 1 commit intoNixOS:masterfrom
PaulGrandperrin:vscode-fix-wayland
Oct 1, 2022
Merged

electron apps: fix wayland window decorations#192659
amaxine merged 1 commit intoNixOS:masterfrom
PaulGrandperrin:vscode-fix-wayland

Conversation

@PaulGrandperrin
Copy link
Contributor

Using NIXOS_OZONE_WL=1 on a gnome wayland session results in missing window decorations.

The arguments recommended on ArchLinux fixes the issue: https://wiki.archlinux.org/title/Wayland#Electron

This PR only patches vscode but maybe it would make sense to apply this patch to all other pkgs using NIXOS_OZONE_WL.

@github-actions github-actions bot added the 6.topic: vscode A free and versatile code editor that supports almost every major programming language. label Sep 23, 2022
@PaulGrandperrin
Copy link
Contributor Author

Pinging the maintainers: @eadwu @Synthetica9 @maxeaubrey @bobby285271

@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Sep 23, 2022
@SuperSandro2000
Copy link
Member

Pinging the maintainers: @eadwu @Synthetica9 @maxeaubrey @bobby285271

You don't need to ping them, ofborg does that already.

This PR only patches vscode but maybe it would make sense to apply this patch to all other pkgs using NIXOS_OZONE_WL.

Can we do --enable-features=UseOzonePlatform,WaylandWindowDecorations ?

@PaulGrandperrin
Copy link
Contributor Author

You don't need to ping them, ofborg does that already.

Ok!

--enable-features=UseOzonePlatform,WaylandWindowDecorations

I tried and it does work, I'm not sure UseOzonePlatform is really needed though

@bobby285271 bobby285271 added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 24, 2022
@ofborg ofborg bot requested a review from eadwu September 24, 2022 08:33
@bobby285271 bobby285271 removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 24, 2022
@amaxine
Copy link
Contributor

amaxine commented Sep 28, 2022

I think UseOzonePlatform is now enabled by default on recent enough electron releases. This PR seems fine, but I think having this for all electron apps would be better - e.g. 1password and Slack would probably benefit from having this too.

@PaulGrandperrin
Copy link
Contributor Author

I think UseOzonePlatform is now enabled by default on recent enough electron releases.

It looks like so!

This PR seems fine, but I think having this for all electron apps would be better - e.g. 1password and Slack would probably benefit from having this too.

I can do that, should I push those changes to this PR or in another PR?

@PaulGrandperrin
Copy link
Contributor Author

I think UseOzonePlatform is now enabled by default on recent enough electron releases.

From my tests, it is already activated by default on 22.05's version of electron

@amaxine
Copy link
Contributor

amaxine commented Sep 28, 2022

Changing this PR to affect everything that uses NIXOS_OZONE_WL sounds good to me 🙂

@PaulGrandperrin
Copy link
Contributor Author

I pushed a new commit modifying NIXOS_OZONE_WL everywhere to enable the same flags.
I didn't try all the applications though, I'll try a few

@ofborg ofborg bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Sep 28, 2022
@PaulGrandperrin PaulGrandperrin changed the title vscode: fix wayland window decorations electron apps: fix wayland window decorations Sep 28, 2022
@PaulGrandperrin
Copy link
Contributor Author

Apps that had the same issue and that were fixed by this patch:

  • vscode
  • signal
  • slack (the decorations are buggy)
  • micropad

Apps that didn't have this issue but still work the same:

  • chromium
  • google-chrome
  • brave

I tried but couldn't test:

  • discord (doesn't launch on wayland, before and after)
  • jitsi-meet-electron (ignores wayland flags, before and after)

@turion
Copy link
Contributor

turion commented Sep 29, 2022

I'd prefer either:

  • pinging all maintainers of all affected apps here
    or
  • only fixing vscode here (to be merged immediately), and all other apps in a separate PR (pinging all maintainers there, possibly takes longer to merge)

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is basically a treewide change where we usually do not ping all maintainers because it would take to long or never be done. If all changed programs where tested this is awesome and in my opinion enough to merge this PR.

@amaxine
Copy link
Contributor

amaxine commented Oct 1, 2022

Ditto, reviews from everyone are practically an impossibility.

@amaxine amaxine merged commit c44d41a into NixOS:master Oct 1, 2022
@teutat3s teutat3s mentioned this pull request Oct 17, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: vscode A free and versatile code editor that supports almost every major programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants