FS#78753 - [electron] 22 breaks vs code drag+drop on Sway/Wayland

Attached to Project: Arch Linux
Opened by Matthew Wardrop (matthewwardrop) - Saturday, 10 June 2023, 19:38 GMT
Last edited by Caleb Maclennan (alerque) - Friday, 16 June 2023, 12:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The current version of Electron 22 shipped with Arch (22.3.3) causes VS Code (and presumably other software) to break on Sway/Wayland when drag+drop operations are initialised. This is outlined in the GitHub bug report on the upstream VS Code software here: https://github.com/microsoft/vscode/issues/156723 . The issue appears to stem from a bug in Electron that was fixed and backported to Electron 22 at some point. The version of Electron shipped with VS Code 1.79 (22.5.5) does not exhibit this behaviour.

Current workarounds are to use XWayland instead of directly using Wayland but then text is blurry/etc, so I'd really rather not. Or you could use the flatpak distributed version, but then you cannot use system installed Python/SDK versions, so that's a bit annoying too. I start Code-OSS using the `--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations` flags.

I've been waiting for this to organically be updated, since Arch tends to track upstream packages reasonably promptly, but that hasn't happened... so I just wanted to make sure folks were aware of this breakage that is affecting peoples workflows.

Steps to reproduce:

Open Code-OSS (`code`), and attempt to drag and drop a file in the file pane. VS Code will segfault.
This task depends upon

Closed by  Caleb Maclennan (alerque)
Friday, 16 June 2023, 12:54 GMT
Reason for closing:  Fixed
Comment by Matthew Wardrop (matthewwardrop) - Saturday, 10 June 2023, 19:40 GMT
Apologies... I forgot to prefix the title of the bug report with [electron].
Comment by loqs (loqs) - Saturday, 10 June 2023, 20:02 GMT
Does the linked electron22 resolve the issue? The PKGBUILD if you want to build it yourself is attached to https://bugs.archlinux.org/task/78667#comment218446
https://drive.google.com/file/d/1hBm6lEbqugEeVF7w4NaeYrqrvZKM9RCc/view?usp=sharing electron22-22.3.12-1-x86_64.pkg.tar.zst
Comment by Matthew Wardrop (matthewwardrop) - Saturday, 10 June 2023, 22:01 GMT
Yes! This build solves the problem! Thank you.
Comment by Caleb Maclennan (alerque) - Friday, 16 June 2023, 12:54 GMT
I believe all the patches mentioned in the other issue have been applied and this should be resolved. If not please feel free to comment for re-opening.

Loading...