Cursor becomes huge in Idea window
Answered
Hi,
I am using Idea 17.2 on Ubuntu 16.04. The pointer becomes double sized when I mouse over Idea, which makes it a bit hard to click around precisely. I tried changing various font sizes, but this seems to have no effect. Any ideas on what is going on?
Please sign in to leave a comment.
Could you please provide a screenshot of the problem? Do you use the bundled runtime? (https://intellij-support.jetbrains.com/hc/articles/206544879).
Any customizations in your window manager settings?
What DPI/scaling do you use?
Taking the screenshot of it is proving difficult since when I try to take one that includes the big cursor, the default cursor is drawn instead which looks normal-sized. So to avoid further googling of weird UI issues, here is just a photo of it instead :)

I am using the bundled runtime, I am using Cinnamon instead of Gnome desktop but haven't done any customization beside that. Dpi scaling is set to auto, haven't touched that either. Everything beside the cursor looks fine in Idea, and the issue does not happen with any other windows.
Could you please share idea.log via some file sharing service since the forum doesn't support non-image attaches? See https://intellij-support.jetbrains.com/hc/articles/207241085. What's your display DPI?
Does the issue affect other Java Swing applications like NetBeans and JEdit?
I am having the same issue. Ubuntu 16.04, screen resolution is 1920x1080, 96dpi. I _am_ using Cinnamon (version 3.6.6)
However, I am using OpenJDK 1.8.0_151, not the bundled.
> Does the issue affect other Java Swing applications like NetBeans and JEdit?
Yes, it does. Sadly, it turns out that if I use the default Gnome desktop the problem goes away. I say sadly, because it means that the problem is Cinnamon, and it is something that you are unlikely to be able to fix. Off to the Cinnamon forums....
I had the same problem on Ubuntu 17.10 and Cinnamon 3.4 and it also affected other Java Swing applications. Switching the JDK or changing some JVM DPI parameters did not solve the problem. On another system with Cinnamon 3.6 on Fedora 27 the mouse cursor didn't become huge when entering the IntelliJ window, so I tried to change the display manager from LightDM to GDM, and afterwards the mouse pointer is working as expected. I don't know why it is working now, but maybe it helps on other systems that are affected by this issue...
I have also the same problem. Ubuntu 16.04 with lightdm and Cinnamon.
I have fix this, by switching from lightdm unity-greeter to lightdm-gtk-greeter. Can it be, that some variables are set, if the DM use GTK?
I have the same problem in a newly installed Xubuntu 18.04 LTS distro. Problem as it seems happen in every JetBrains product including WebStorm, and Intellij IDEA. My desktop environment is XFCE4, using xscreensaver and lightdm.
Do we have any news on how to resolve this? is getting really hard to click on things!
I had the same problem when using XFCE on a 4K TV used as monitor. To fix, shutdown IntelliJ, go to XFCE menu > settings > appearance > Fonts tab. Set cutom DPI. I set it to 96. Start IntelliJ. I believe this should work for other desktop environments too by settings their custom DPIs
This is what helped in my case:
The export suggested by Gyorgy worked for me too, thanks Gyorgy!
For other applications where a similar problem was occurring it was enough to change /etc/X11/Xresources/x11-common to have “Xcursor.size: 12”, but for intellij I had to match the size in the exported variable as suggested
Note: this is on i3
If you are on wayland and the cursor on the second monitor is huge, just close the IDE and open it again. The cursor gets big when the IDE is opened earlier than the external monitor is connected.
https://youtrack.jetbrains.com/issue/IJPL-43782/Mouse-cursor-size-is-wrong-when-going-from-high-DPI-laptop-display-to-different-DPI-monitor-on-XWayland