Bug 47603 - Ugly mouse cursor on KDE Plasma desktop
Summary: Ugly mouse cursor on KDE Plasma desktop
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-21 21:48 UTC by elvis.angelaccio
Modified: 2016-11-22 15:47 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
WinForms hello.cs test app used to reproduce the issue (238 bytes, text/x-csharp)
2016-11-21 21:48 UTC, elvis.angelaccio
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DOWNSTREAM

Description elvis.angelaccio 2016-11-21 21:48:04 UTC
Created attachment 18586 [details]
WinForms hello.cs test app used to reproduce the issue

Hi,
mono apps have an ugly mouse cursor when started from the KDE Plasma desktop. 

Steps to reproduce:

1. Login in a Plasma desktop
2. mcs hello.cs -pkg:dotnet
3. mono hello.exe

Actual result: 
Mouse cursor looks out of place and doesn't respect the gtk (adwaita) theme: http://i.imgur.com/D4isxCn.png

Expected result:
Mouse cursor should be from the adwaita theme, like the very same test app does on Gnome: http://imgur.com/a/FSE7N

This could be a Plasma bug, but I'm reporting it here first just to be sure.
Comment 1 elvis.angelaccio 2016-11-22 12:30:43 UTC
Interesting how the Gtk# hello world app is not affected: http://www.mono-project.com/docs/getting-started/mono-basics/#gtk-hello-world

With the app above I get the Plasma native mouse cursor, as expected: http://i.imgur.com/hcubueI.png
Comment 2 elvis.angelaccio 2016-11-22 12:50:35 UTC
I did more tests in the Enlightenment desktop, which like Plasma has a "native" mouse cursor theme. This is what happens:

* winform test app => cursor is not native, but at least falls back on the gtk adwaita cursor which is good enough

* gtk-sharp test app => cursor is native (same happens in Plasma)

So this could really be a bug from the Plasma side, which is only triggered in winforms apps.
Comment 3 elvis.angelaccio 2016-11-22 15:47:10 UTC
Further investigation with strace showed that the breeze theme (which provides the Plasma cursor) doesn't have a top_left_arrow cursor, which is what WinForms app look for. The adwaita theme instead has a top_left_arrow -> left_ptr symlink, hence why adwaita systems are not affected.

Fix in https://phabricator.kde.org/D3459