Open gfhdhytghd opened 1 year ago
just try this:
#!/bin/bash
handle() {
event="${line%%>>*}"
edata="${line#"$event">>}"
array=(${edata//,/ })
if [ ${event} = "openwindow" -a ${array[2]} = "QQ" -a ${array[3]} = "QQ" ]; then
hyprctl dispatch centerwindow
fi
}
socat -U - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read -r line; do handle "$line"; done
it worked as expected (work for qq but for others like wechat, rofi-dmenu it not work)
Can you just use a windowrulev2, no?
of course a windowsrull can solve it, but this problem is obviously a bug and should not be solved by the user.
What kind of bug? I don't understand, are you launching this application floating?
Do you mind publishing your configurations?
there is no windowrule about QQ WeChat or such thing, this is a problem of the new hidpi xwayland solution, those x11 windows which should start in the center start right in the center if I use hidpi-patch instead of “force zero scaling”
What kind of bug? I don't understand, are you launching this application floating?
Do you mind publishing your configurations?
for more information ,see https://github.com/hyprwm/Hyprland/issues/2916#issuecomment-1687659423
@vaxerski
I am aware lol, just have a million other issues open too and something being slightly off-center is not a huge deal
yeah, tones of problems need to solve
Also faced this problem. + Periodically, xwayland applications(full screen games) lose the cursor. I was able to fix it, info here: https://github.com/hyprwm/Hyprland/pull/2906 Only there was a problem that games periodically lose the cursor. After that, the mouse click LMB moves the cursor to the ceiling(sky).
it still happens in the newest git build
Hyprland Version
28
Bug or Regression?
Bug
Description
As you could see, the x11 app which should be right in the center isn’t that center, moved a few pixels
How to reproduce
Build and install Hyprland from the main and install linuxqq or wechat-uos from AUR and start it
Crash reports, logs, images, videos
No response