Skip to content
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

Mouse is offset in wine (but not in virtual desktop) #105

Open
YaLTeR opened this issue Feb 4, 2025 · 6 comments
Open

Mouse is offset in wine (but not in virtual desktop) #105

YaLTeR opened this issue Feb 4, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@YaLTeR
Copy link

YaLTeR commented Feb 4, 2025

If I use the wine virtual desktop, everything works fine. If I don't however, the mouse is offset. Here's an example on winecfg:

test.mp4

wine-10.0 (Staging), Fedora 41

@Supreeeme
Copy link
Owner

Does the offset change depending on the monitor location?

@YaLTeR
Copy link
Author

YaLTeR commented Feb 4, 2025

No. Also this monitor is at 0, 0

@Supreeeme
Copy link
Owner

Log with RUST_LOG=debug?

@YaLTeR
Copy link
Author

YaLTeR commented Feb 4, 2025

 2025-02-04T15:50:02.929Z DEBUG xwayland_satellite::server::event > moving wl_output@12[0] to 0x0
 2025-02-04T15:50:02.929Z DEBUG xwayland_satellite::server::event > moving zxdg_output_v1@13[0] to 0x0
 2025-02-04T15:50:02.929Z DEBUG xwayland_satellite::server::event > moving wl_output@14[0] to 2560x0
 2025-02-04T15:50:02.929Z DEBUG xwayland_satellite::server::event > moving zxdg_output_v1@15[0] to 2560x0
 2025-02-04T15:50:02.977Z DEBUG xwayland_satellite::server::dispatch > new surface with key ObjectKey(7v1) (Some(22))
 2025-02-04T15:50:02.978Z INFO  xwayland_satellite::xstate           > xfixes version: 1.0
 2025-02-04T15:50:02.981Z INFO  xwayland_satellite                   > Connected to Xwayland on :0
 2025-02-04T15:50:02.981Z DEBUG xwayland_satellite::xstate           > new outputs: {"DP-2": Output { res_id: 35 }, "DP-1": Output { res_id: 33 }} | primary: Output { res_id: 0 }
 2025-02-04T15:50:02.981Z INFO  xwayland_satellite                   > Successfully notified systemd of ready state.
 2025-02-04T15:50:02.981Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 49, parent: Window { res_id: 1080 }, window: Window { res_id: 2097158 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:02.981Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 51, parent: Window { res_id: 1080 }, window: Window { res_id: 2097157 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:02.986Z INFO  xwayland_process                     > The XKEYBOARD keymap compiler (xkbcomp) reports:
 2025-02-04T15:50:02.986Z INFO  xwayland_process                     > > Warning:          Unsupported maximum keycode 708, clipping.
 2025-02-04T15:50:02.986Z INFO  xwayland_process                     > >                   X11 cannot support keycodes above 255.
 2025-02-04T15:50:02.987Z INFO  xwayland_process                     > > Warning:          Could not resolve keysym XF86KbdInputAssistPrevgrou
 2025-02-04T15:50:02.987Z INFO  xwayland_process                     > > Warning:          Could not resolve keysym XF86KbdInputAssistNextgrou
 2025-02-04T15:50:02.987Z INFO  xwayland_process                     > Errors from xkbcomp are not fatal to the X server
 2025-02-04T15:50:08.344Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 66, parent: Window { res_id: 1080 }, window: Window { res_id: 6291457 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:08.347Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 66, parent: Window { res_id: 1080 }, window: Window { res_id: 6291458 }, x: 0, y: 0, width: 166, height: 52, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:08.348Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 66, parent: Window { res_id: 1080 }, window: Window { res_id: 4194357 }, x: -1, y: -1, width: 1, height: 1, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:08.348Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 66, parent: Window { res_id: 1080 }, window: Window { res_id: 6291459 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:08.348Z DEBUG xwayland_satellite::xstate           > Window { res_id: 6291458 } request: X | Y | WIDTH | HEIGHT | STACK_MODE
 2025-02-04T15:50:08.349Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 6291458 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: false, popup_for: None, dims: WindowDims { x: 0, y: 0, width: 166, height: 52 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 3, y: 29, width: 160, height: 20 }
 2025-02-04T15:50:08.355Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 6291460 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:08.356Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 6291461 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:08.356Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 8388609 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:08.356Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 6291462 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:08.357Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 6291463 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:10.185Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 16777217 }, x: 0, y: 0, width: 336, height: 260, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:10.186Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 14680083 }, x: -1, y: -1, width: 1, height: 1, border_width: 0, override_redirect: false, pad: 1 }
 2025-02-04T15:50:10.186Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 68, parent: Window { res_id: 1080 }, window: Window { res_id: 16777218 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:10.187Z DEBUG xwayland_satellite::xstate           > Window { res_id: 16777217 } request: X | Y | WIDTH | HEIGHT | STACK_MODE
 2025-02-04T15:50:10.187Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777217 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: false, popup_for: None, dims: WindowDims { x: 0, y: 0, width: 336, height: 260 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 3, y: 29, width: 330, height: 228 }
 2025-02-04T15:50:10.192Z DEBUG xwayland_satellite::xstate           > Window { res_id: 16777217 } request: WIDTH | HEIGHT
 2025-02-04T15:50:10.192Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777217 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: false, popup_for: None, dims: WindowDims { x: 3, y: 29, width: 330, height: 228 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 3, y: 29, width: 410, height: 446 }
 2025-02-04T15:50:10.193Z WARN  xwayland_satellite::xstate           > unrecognized message: Atom { res_id: 252 }
 2025-02-04T15:50:10.193Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 72, parent: Window { res_id: 1080 }, window: Window { res_id: 16777219 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:10.199Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 72, parent: Window { res_id: 1080 }, window: Window { res_id: 16777220 }, x: 153, y: 368, width: 218, height: 66, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:10.199Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777220 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: true, popup_for: None, dims: WindowDims { x: 153, y: 368, width: 218, height: 66 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 153, y: 368, width: 218, height: 67 }
 2025-02-04T15:50:10.199Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777220 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: true, popup_for: None, dims: WindowDims { x: 153, y: 368, width: 218, height: 67 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 153, y: 368, width: 218, height: 66 }
 2025-02-04T15:50:10.200Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777220 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: true, popup_for: None, dims: WindowDims { x: 153, y: 368, width: 218, height: 66 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 153, y: 368, width: 218, height: 67 }
 2025-02-04T15:50:10.200Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777220 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: true, popup_for: None, dims: WindowDims { x: 153, y: 368, width: 218, height: 67 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 153, y: 368, width: 218, height: 66 }
 2025-02-04T15:50:10.200Z DEBUG xwayland_satellite::server           > Reconfiguring WindowData { window: Window { res_id: 16777220 }, surface_serial: None, surface_key: None, mapped: false, attrs: WindowAttributes { override_redirect: true, popup_for: None, dims: WindowDims { x: 153, y: 368, width: 218, height: 66 }, size_hints: None, title: None, class: None, group: None }, output_offset: WindowOutputOffset { x: 0, y: 0 }, output_key: None } WindowDims { x: 153, y: 368, width: 218, height: 67 }
 2025-02-04T15:50:10.203Z DEBUG xwayland_satellite::xstate           > Window { res_id: 16777217 } request: STACK_MODE
 2025-02-04T15:50:10.203Z DEBUG xwayland_satellite::xstate           > requested to map Window { res_id: 16777217 }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::xstate           > Window { res_id: 16777217 } geometry: GetGeometryReply { response_type: 1, depth: 24, sequence: 79, length: 0, root: Window { res_id: 1080 }, x: 3, y: 29, width: 410, height: 446, border_width: 0, pad: 2 }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server           > setting Window { res_id: 16777217 } hints WmNormalHints { min_size: Some(WinSize { width: 410, height: 446 }), max_size: Some(WinSize { width: 410, height: 446 }) }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server           > mapping Window { res_id: 16777217 }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::xstate           > new window: CreateNotifyEvent { response_type: 16, pad: 1, sequence: 78, parent: Window { res_id: 1080 }, window: Window { res_id: 6291464 }, x: 0, y: 0, width: 1, height: 1, border_width: 0, override_redirect: true, pad: 1 }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server::dispatch > new surface with key ObjectKey(13v1) (Some(26))
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server::dispatch > associate surface 26 with Window { res_id: 16777217 }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server           > creating toplevel for Window { res_id: 16777217 }
 2025-02-04T15:50:10.213Z WARN  xwayland_satellite::server::event    > unhandled xdgtoplevel event: ConfigureBounds { width: 2525, height: 1438 }
 2025-02-04T15:50:10.213Z WARN  xwayland_satellite::server::event    > unhandled xdgtoplevel event: WmCapabilities { capabilities: [3, 0, 0, 0] }
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server::event    > configuring toplevel 410x446, [5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0]
 2025-02-04T15:50:10.213Z DEBUG xwayland_satellite::server::event    > configuring Window { res_id: 16777217 }: 0x0, 410x446
 2025-02-04T15:50:10.216Z DEBUG xwayland_satellite::server::event    > wl_surface@26[0] entered wl_output@12[0]
 2025-02-04T15:50:10.216Z DEBUG xwayland_satellite::server::event    > configuring toplevel 410x446, [5, 0, 0, 0, 6, 0, 0, 0, 7, 0, 0, 0, 8, 0, 0, 0, 4, 0, 0, 0]
 2025-02-04T15:50:10.216Z DEBUG xwayland_satellite::server::event    > configuring Window { res_id: 16777217 }: 0x0, 410x446
 2025-02-04T15:50:10.217Z DEBUG xwayland_satellite::server           > focusing window Window { res_id: 16777217 }
 2025-02-04T15:50:10.217Z DEBUG xwayland_satellite::xstate           > set DP-1 as primary output
 2025-02-04T15:50:10.217Z DEBUG xwayland_satellite::xstate           > new outputs: {"DP-2": Output { res_id: 35 }, "DP-1": Output { res_id: 33 }} | primary: Output { res_id: 33 }
 2025-02-04T15:50:10.232Z DEBUG xwayland_satellite::xstate           > ignoring reconfigure request for Window { res_id: 16777217 }
 2025-02-04T15:50:10.232Z DEBUG xwayland_satellite::xstate           > changed property "_MOTIF_WM_HINTS" for Window { res_id: 16777217 }
 2025-02-04T15:50:11.461Z DEBUG xwayland_satellite::server::event    > entering surface (1365604)
 2025-02-04T15:50:11.535Z DEBUG xwayland_satellite::server::event    > wl_surface@22[0] entered wl_output@12[0]
 2025-02-04T15:50:14.371Z DEBUG xwayland_satellite::server           > sending close request to Window { res_id: 16777217 }
 2025-02-04T15:50:14.372Z DEBUG xwayland_satellite::xstate           > changed property "_MOTIF_WM_HINTS" for Window { res_id: 16777217 }
 2025-02-04T15:50:14.372Z DEBUG xwayland_satellite::xstate           > ignoring reconfigure request for Window { res_id: 16777217 }
 2025-02-04T15:50:14.373Z DEBUG xwayland_satellite::server           > skipping setting window name to WmName("Wine configuration") because a _NET_WM_NAME title is already set
 2025-02-04T15:50:14.373Z DEBUG xwayland_satellite::xstate           > changed property "WM_ICON_NAME" for Window { res_id: 16777217 }
 2025-02-04T15:50:14.373Z DEBUG xwayland_satellite::server           > setting Window { res_id: 16777217 } title to NetWmName("Wine configuration")
 2025-02-04T15:50:14.373Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 16777220 }
 2025-02-04T15:50:14.374Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 16777219 }
 2025-02-04T15:50:14.375Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 16777218 }
 2025-02-04T15:50:14.375Z DEBUG xwayland_satellite::server           > unmapping Window { res_id: 16777217 }
 2025-02-04T15:50:14.375Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 16777217 }
 2025-02-04T15:50:14.375Z DEBUG xwayland_satellite::server::dispatch > deleting key: ObjectKey(13v1) (surface 26)
 2025-02-04T15:50:14.378Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 14680083 }
 2025-02-04T15:50:15.378Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291463 }
 2025-02-04T15:50:15.379Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291462 }
 2025-02-04T15:50:15.379Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291461 }
 2025-02-04T15:50:15.379Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291460 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 8388609 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291457 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291458 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291459 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 6291464 }
 2025-02-04T15:50:15.384Z DEBUG xwayland_satellite::xstate           > destroying window Window { res_id: 4194357 }

@Supreeeme Supreeeme added the bug Something isn't working label Feb 26, 2025
@zetaPRIME
Copy link

mouse support also seems to be entirely broken in certain installers, such as the one for Voxengo MSED? not sure if related but I do get the same behavior as described here in winecfg so I figured I'd see if it was a commonality.

@zetaPRIME
Copy link

zetaPRIME commented Mar 7, 2025

oh, another note: I do not get this behavior on games (anything running through Proton or Lutris) or VSTs loaded by Renoise (which are using my system wine via yabridge)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants