-
-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode opening on wrong monitor #6495
Comments
bisect then please https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue |
I have the same issue with Steam. Launched on 'main' monitor windows pop up on left (0,0) monitor. Bisect: addd3e7 |
you mean tiled windows? |
Both. The initial steam 'splash' screen (which is floating) and then the main steam window which is tiled. |
I just did some debugging of this behavior with steam: A surface activation event is firing for a window with 0,0 position and 0,0 size. warpCursor() is warping to middle() which calculates to 0,0. Pulls the cursor to whatever monitor is at 0,0 and then all the other steam windows open there because that's where focus is now. |
MRs welcome, I am busy with #6608 |
I haven't quite figured it out yet, but... You can probably work around this by setting focus_on_activate = false in the config. Possibly you can use suppressevent activatefocus windowrule too, but it depends on how stupid the app is being. |
Some notes in case anyone else wants to debug this: the actual issue is that the x11 window sets _NET_ACTIVE_WINDOW before the XSurface has a valid wlSurface. With the wlroots xwayland implementation the surface comes back from the compositor almost immediately after the XCB_MAP_REQUEST so it is valid when _NET_ACTIVE_WINDOW is set. I can fix it if I defer the activate until after the surface is setup, but that feels like I'm just hacking around some other problem |
Bug or Regression?
Bug
System Info and Version
Working on same config on older version.
Description
When opening vscode, it opens on second monitor even I focus on first.
Dispatch also opens it on second monitor.
I do not have any windowrules for vscode.
How to reproduce
hyprctl dispatch exec code
orcode
in terminal.Crash reports, logs, images, videos
Hyprland, built from branch main at commit 8055b1c (misc: Fix build warnings (6486)).
Date: Fri Jun 14 00:23:23 2024
Tag: v0.41.1-4-g8055b1c0, commits: 4822
The text was updated successfully, but these errors were encountered: