hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
18.05k stars 753 forks source link

mouse on client device doesn't match on server device with 2 monitors #4580

Open jiehuifang opened 5 months ago

jiehuifang commented 5 months ago

Hyprland Version

System/Version info ```sh #hyprctl version Hyprland, built from branch HEAD at commit 03ebbe18ed8517ee22591eac82cd54322f42cb7d (props: bump ver to 0.34.0). Date: Mon Jan 1 12:03:15 2024 Tag: v0.34.0 flags: (if any) ```

Bug or Regression?

Bug

Description

wm is hyprland. It uses wayvnc to perform vnc services. Connect to hyprland from other machines. The mouse on the client side of vnc is inconsistent with the mouse on the server side of vnc. There are two monitors on the server side. There will be two mice on the client side. The mouse on the client side can also be controlled to move to other monitors on the server side.

# wayvnc version
wayvnc: v0.7.2-0-g4de85ac (makepkg)
neatvnc: v0.7.1-0-gb5b330b (makepkg)
aml: v0.3.0-0-gb83f357 (makepkg)

How to reproduce

1.hyprctl monitors

Monitor HDMI-A-1 (ID 0):
    1920x1080@60.00000 at 0x0
    description: BLS BUBALUS 0x00001A0A (HDMI-A-1)
    make: BLS
    model: BUBALUS
    serial: 0x00001A0A
    active workspace: 4 (4)
    special workspace: 0 ()
    reserved: 0 25 0 0
    scale: 1.00
    transform: 0
    focused: yes
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false

Monitor DP-1 (ID 1):
    1920x1080@60.00000 at 1920x0
    description: AOC 22B1W5 ATJL61A022706 (DP-1 via VGA)
    make: AOC
    model: 22B1W5
    serial: ATJL61A022706
    active workspace: 2 (2)
    special workspace: 0 ()
    reserved: 0 25 0 0
    scale: 1.00
    transform: 0
    focused: no
    dpmsStatus: 1
    vrr: 0
    activelyTearing: false

2.wayvnc -o "HDMI-A-1" 0.0.0.0 5555 3.use vnc viewer (vnc client) connect to wayvnc(hyprland)

Crash reports, logs, images, videos

image

jiehuifang commented 5 months ago

The picture does not show another mouse. In fact, in the vnc viewer, I see two mice.

xz-dev commented 5 months ago

Maybe useful, link to: https://github.com/any1/wayvnc/discussions/256