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
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
|
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
https://drive.google.com/file/d/1hBm6lEbqugEeVF7w4NaeYrqrvZKM9RCc/view?usp=sharing electron22-22.3.12-1-x86_64.pkg.tar.zst