-
Notifications
You must be signed in to change notification settings - Fork 314
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 pointer is scaled as of display config is scaled #61
Comments
@hideyukn88 Nope. It doesn't work. It's the UI interface that changes, the mouse pointer size is still big and fail on selection. |
Co-authored-by: Ben Hillis <[email protected]>
@hideyukn88 When the mouse is placed on the border, it is not enlarged, only when it is placed in the menu or text area. |
@ati46 , I am not able to reproduce that enlarged cursor in your video with Ubuntu 20.04 LTS with gnome-terminal. For reference, would you please check if your gnome-terminal is running in X11 backend or Wayland mode ? (For me I can't repro in both mode though) Normally by default, it runs on wayland mode (as WSLg runs on wayland compositor), but can switch to X11 backend by "export GDK_BACKEND=x11". Also, the regarding to selection, the cursor's hotspot is upper left corner of cursor bounding box, not center of cursor image, please check if selection is made at hotspot? Thanks! |
After restart yesterday, the mouse pointer is not large, and, gnome-terminal is not scaled too (previously scaled). No further configuration on WSLg. And the selection hotspot is at the center of the characters, not the left corner. wslg-pointer-bug-s2.mp4 |
After last windows 10 next updated today. The cursor is still scaled. |
I have the same issue here on Windows11/WSLg with a 4k screen / 200% scaling. |
I face this error |
Try this > |
If you're using wayland, this might work for you:
This sets the size to 12 which looks to me about the same size as that of the native cursor. You can change the size to whatever you want. To view the current value: |
The gsettings workaround is unacceptable if you are using waypipe to access a remote machine. Microsoft needs to fix this bug that has been reported more than two years ago. They haven't even acknowledged it. |
I'm running into the same issue. The fractional scaling link didn't work. It affected the PyCharm window and its content, but not the mouse cursor.
My distro is Ubuntu-24.04 as of about 2024-06-18 FWIW, I don't have this problem with my Ubuntu-20.04 WSL2 distro on the same machine |
The good news, this works for me. Placing this inside .bashrc kind of fixes it. But only if I launch an interactive terminal first and then my gui app Where can I put the I have tried creating ~/.xinitrc, /etc/X11/xinit/xinitrc and placing it there, but that did not help |
Same issue here: Ubuntu 22.0.4 OK WSL-Version: 2.3.14.0 |
I put this in
|
Environment
Steps to reproduce
Scale and layout
option to more than 100% eg: 250%.gnome-terminal
WSL logs:
versions.txt
Expected behavior
The pointer should have a normal size compared to running apps. Text selection should be selected only under that cursor.
Actual behavior
It's scaled to a bigger size and does wrong text selection.
Demo Video:
wslg-pointer-bug-s.mp4
Display Config:
The text was updated successfully, but these errors were encountered: