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

Cursor doesn't work correctly on Wayland #6949

Closed
grz0 opened this issue Aug 7, 2022 · 7 comments
Closed

Cursor doesn't work correctly on Wayland #6949

grz0 opened this issue Aug 7, 2022 · 7 comments
Labels
Bug Issues involving unexpected behavior. Linux OS-specific issues that apply to Linux-based operating systems. UI User interface issues, including both back-end and front-end issues.

Comments

@grz0
Copy link
Contributor

grz0 commented Aug 7, 2022

Game and System Information

The Battle for Wesnoth version 1.17.6+dev (54fedb4-Clean) x86_64
Running on Fedora Linux 36 (Workstation Edition) x86_64
DE: KDE 5.25

Description of the bug

The mouse cursor does not work correctly when wesnoth is running as native Wayland application, check screenshot:

image

Steps to reproduce the behavior

  1. Run wesnoth
  2. Change resolution to the lowest
  3. Maximize window
  4. Try to click a GUI element

Expected behavior

No response

Additional context

No response

@grz0 grz0 added the Bug Issues involving unexpected behavior. label Aug 7, 2022
@mesilliac
Copy link
Contributor

I tried running under Wayland again and i can't reproduce this - although i did manage to trigger some strange behaviour and breakage after changing to random resolutions, maximizing, minimizing, and doing various things.

Is this a full-desktop window like you get when you click "fullscreen", or just a maximized window? What i mean is, are there any bars or docks reducing the screen area, or is it taking up the whole display?

I did sometimes manage to get it into a state where the wrong resolution was being used by the game, and the remainder of the space was black. However even in this case it was mapping the cursor correctly.

For reference i'm running SDL version 2.0.20. There were many Wayland-related changes in SDL recently, but as far as i'm aware it's still not considered stable on Wayland even in the latest version.

Graphics hardware may also be an important factor. Nvidia at least still don't fully support Wayland.

@grz0
Copy link
Contributor Author

grz0 commented Aug 7, 2022

Is this a full-desktop window like you get when you click "fullscreen", or just a maximized window?

Maximized desktop window, but I can reproduce the same issue when I switch from maximized window to fullscreen.

Nvidia at least still don't fully support Wayland.

I have Intel GPU.

@Wedge009 Wedge009 added the UI User interface issues, including both back-end and front-end issues. label Aug 28, 2022
@Wedge009
Copy link
Member

It's not clear to me what the image is supposed to be illustrating. Is it the case that a click at the position where the mouse cursor is registers as a click on the General tab?

@Wedge009 Wedge009 added the Linux OS-specific issues that apply to Linux-based operating systems. label Aug 28, 2022
@grz0
Copy link
Contributor Author

grz0 commented Aug 28, 2022

Is it the case that a click at the position where the mouse cursor is registers as a click on the General tab?

Yes

@Wedge009
Copy link
Member

I suppose you don't get the mis-alignment on X11? At a glance this looks similar to what I reported in #5518 (comment) except I don't use Wayland.

@grz0
Copy link
Contributor Author

grz0 commented Aug 28, 2022

I suppose you don't get the mis-alignment on X11?

No, it works fine on X11, on Wayland it is broken.

@grz0
Copy link
Contributor Author

grz0 commented Aug 28, 2022

I'm closing this bug. I retested on 314f6f7 and I cannot reproduce this issue. I think this could be caused by some KDE/Wayland.

@grz0 grz0 closed this as completed Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. Linux OS-specific issues that apply to Linux-based operating systems. UI User interface issues, including both back-end and front-end issues.
Projects
None yet
Development

No branches or pull requests

3 participants