-
-
Notifications
You must be signed in to change notification settings - Fork 914
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
Windows spawn somewhere in the corner #6154
Comments
Please attach config. Cannot repro. |
Can you also give steps to reproduce this issue? And can you explain what the issue is? It looks like the auth pop up is popping up in the top right. Is that the the problem? |
Before some update, all windows were opening in the center (launcher and auth window), now they are just spawning in random corners, but not in the center, when I will be home I will try to find generation where that problem doesn't occur |
And steps to reproduce
|
same energy as "install linux, why no work" 🤣 I suspect it's this |
I have the same issue. Any floating window no longer spawns in center of screen but off to upper left corner. I changed nothing in my config. Using the latest git no plugins. |
Video_2024-05-20_09-44-40.mp4 |
This doesn't look like no config lol. Can you post the config. I am trying this right now and I am not getting this issue. I'll try it with OP's config a later today and update this. |
Here you are friend. |
I wonder if this could be because of a mesa bug as mentioned here: And here: |
nevermind, doesn't happen anymore in a normal non-nested session (although it did some days ago, weird...) but the windows spawning in the top-left / bottom-right / bottom-center / whatever corners still happens |
it seems the center window rule still works, heres a video showing a popup w/ the center window rule and without Center:
|
The mesa bug I posted affects AMD. Looks like you're on Intel? |
yeah, iris plus g4 (integrated graphics for the i3-1000ng4) |
Same issue after switching to git version (Because the waybar module idle_inhibitor did not work). Seems like it happens only with gnome-polkit window in my case. For example, in the video I opened the zenity window, which appeared in the center as needed. Also, the telegram context menu slides to the center (or above) of the screen when it was invoked at the bottom of the screen (in which case it is expected to be drawn just above the selected message, but not in another part of the screen). I admit that this may be a telegram problem 2024-05-26_18-14-19.mp4 |
they always seem to spawn at X = width / 2 and Y = height / 2, so there is likely a typo somewhere. |
patch.txt |
close |
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index 108f9039..123f27ac 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -147,7 +147,7 @@ void IHyprLayout::onWindowCreatedFloating(PHLWINDOW pWindow) {
pWindow->m_vRealPosition = pWindow->m_pXDGSurface->toplevel->parent->window->m_vRealPosition.goal() +
pWindow->m_pXDGSurface->toplevel->parent->window->m_vRealSize.goal() / 2.F - desiredGeometry.size() / 2.F;
else
- pWindow->m_vRealPosition = PMONITOR->vecPosition + desiredGeometry.size() / 2.F;
+ pWindow->m_vRealPosition = PMONITOR->vecPosition + PMONITOR->vecSize / 2.F - desiredGeometry.size() / 2.F;
} else {
// if it is, we respect where it wants to put itself, but apply monitor offset if outside
// most of these are popups fixes it |
isnt that what I've done? maybe its too late and I am idiot |
is this fixed now then? |
sometimes I feel like I should revoke the perms to force push to main from myself, muscle memory sometimes does -f... |
done, enjoy |
Hyprland Version
System/Version info
Bug or Regression?
Bug
Description
wtf.mp4
How to reproduce
Use latest hyprland from git
Crash reports, logs, images, videos
No response
The text was updated successfully, but these errors were encountered: