Repository navigation
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
34
What operating system(s) are you using?
Other Linux
Operating System Version
6.14.4-arch1-1
What arch are you using?
x64
Last Known Working Electron version
As far as I tested, this is happening up until v28
Expected Behavior
The applications work in all the monitors normally
Actual Behavior
I currently have two monitors set up like this in Sway:
# Focus first monitor on start
focus output DP-1
# OLED Monitor (4K) in the center
output DP-1 {
mode 3840x2160@240Hz
position 0 0
scale 1.25
}
# portrait second monitor (UHD 2560x1440) on the left side
output DP-2 transform 90 {
mode 1440x2560@165Hz
# 3840 at a 1.25 scale is 3840 / 1.25 = 3072
# For the Y it was trial and error
# Left side (transform 90)
position -1440 -450
}
There's a weird bug happening where, if I open the application on the main monitor (the OLED) it will work normally, if I move the application to the secondary monitor, it doesn't receive any other keyboard or mouse inputs anymore, essentially, it becomes an image.
To make it work again, I need to set ELECTRON_OZONE_PLATFORM_HINT=auto (or wayland) before running the apps, but then this triggers #46823. To reproduce it, I didn't have to do much, the default application from the fiddle already shows the problem: https://gist.github.com/khaosdoctor/145dd3db00b2b4d1fb78f51b9c14b5b9
I added a button, if you have two monitors (I'm not sure if the different DPI will affect it) the second monitor won't have any interaction with it, the application will seem dead, however, it works normally on the main monitor.
Testcase Gist URL
Additional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields👀 Unsorted Items
- StatusShow more project fields👍 Does Not Block Stable
Activity
nikwen commentedon Apr 28, 2025
Thanks for reporting! Does this still happen on Electron v35/v36?
khaosdoctor commentedon Apr 29, 2025
As far as I tested in the fiddle, yes. Should I set something in particular?
nikwen commentedon Apr 29, 2025
Thanks for testing! Nothing specific to test.
electron-issue-triage commentedon Jul 28, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
khaosdoctor commentedon Jul 29, 2025
Still a thing
electron-issue-triage commentedon Oct 29, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
Sytten commentedon Nov 7, 2025
Platform hints are not a thing anymore, but we are having issues on wayland
nikwen commentedon Dec 12, 2025
Closing this as platform hints are no longer necessary on the most recent Electron versions.