pyprland icon indicating copy to clipboard operation
pyprland copied to clipboard

[BUG] [layout_center] incorrect window position

Open tito opened this issue 1 year ago • 8 comments

Pyprland version 2.4.0

Describe the bug In a setup with 2 monitors, each monitor have its hyprland workspace. If you do pypr layout_center toggle, the current selected window will be split between both monitors AKA between both workspace.

Setup is: 1080p left, 2160p right

Before activation WhatsApp Image 2024-08-14 at 08 30 43 (1)

After activation WhatsApp Image 2024-08-14 at 08 30 43

Expected behavior It should be centered to the current workspace.

tito avatar Aug 14 '24 14:08 tito

Hi! Can you provide the pypr logs and the output of hyprctl -j monitors ?

fdev31 avatar Aug 14 '24 18:08 fdev31

Do you have any special configuration ? And which version of Hyprland are you using?

fdev31 avatar Aug 16 '24 19:08 fdev31

Multiple monitors are supported, I'll rename to a more vague title until we get more clarity on your problem.

fdev31 avatar Aug 16 '24 19:08 fdev31

Lastly, do you have a chance to test on an older Hyprland version?

fdev31 avatar Aug 16 '24 19:08 fdev31

Here is the output of hyprctl -j monitors:

❯ hyprctl -j monitors
[{
    "id": 0,
    "name": "DP-2",
    "description": "Acer Technologies Acer XB281HK #ASMTlagXJiXd",
    "make": "Acer Technologies",
    "model": "Acer XB281HK",
    "serial": "#ASMTlagXJiXd",
    "width": 3840,
    "height": 2160,
    "refreshRate": 59.99700,
    "x": 1920,
    "y": 0,
    "activeWorkspace": {
        "id": 8,
        "name": "8"
    },
    "specialWorkspace": {
        "id": 0,
        "name": ""
    },
    "reserved": [0, 49, 0, 0],
    "scale": 1.50,
    "transform": 0,
    "focused": true,
    "dpmsStatus": true,
    "vrr": false,
    "activelyTearing": false,
    "disabled": false,
    "currentFormat": "XRGB8888",
    "availableModes": ["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"]
},{
    "id": 1,
    "name": "HDMI-A-2",
    "description": "Iiyama North America PLT2252 1151301100379",
    "make": "Iiyama North America",
    "model": "PLT2252",
    "serial": "1151301100379",
    "width": 1920,
    "height": 1080,
    "refreshRate": 60.00000,
    "x": 0,
    "y": 0,
    "activeWorkspace": {
        "id": 1,
        "name": "1"
    },
    "specialWorkspace": {
        "id": 0,
        "name": ""
    },
    "reserved": [0, 49, 0, 0],
    "scale": 1.00,
    "transform": 0,
    "focused": false,
    "dpmsStatus": true,
    "vrr": false,
    "activelyTearing": false,
    "disabled": false,
    "currentFormat": "XRGB8888",
    "availableModes": ["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"]
}]

Hyprland version:

❯ hyprctl version
Hyprland, built from branch  at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259  (props: bump version to 0.42.0).
Date: Wed Aug 7 19:17:10 2024
Tag: v0.42.0, commits: 5069

I discovered the plugin spending time upgrading on latest version. I'm using arch and it's unclear how i can go back in time with packages.

tito avatar Aug 20 '24 14:08 tito

Thank you! I guess this has to do with the scaling ratio applied to one of your monitors, I have busy times lately but I'll try to look into that!

fdev31 avatar Aug 21 '24 16:08 fdev31

I discovered the plugin spending time upgrading on latest version. I'm using arch and it's unclear how i can go back in time with packages.

Find the packages via https://archive.archlinux.org/ and just use pacman -U to install them.

fdev31 avatar Aug 21 '24 16:08 fdev31

Any update ?

fdev31 avatar Sep 19 '24 05:09 fdev31