XQueryBestCursor behaviour difference between XMir and X

Bug #1246872 reported by Tom Hindle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Testing on Ubuntnu 14.04 with Mir enabled.

The following call to XQueryBestCursor returns a width and height of 0.

XQueryBestCursor(dis, d, 32, 32, &width_return, &height_return);

Whereas when not using Mir it returns a width and height of 32.

I've attached a simple X11 application that shows the difference. (or it can be seen here https://bitbucket.org/hindlemail/x11testapplication/src/adaba4419fcaec3e9031223b43f0e62f6593a578/main.c?at=default)

This difference prevents all mono winforms applications from running. (Including something as simple as showing a message box).

Tags: xmir
Revision history for this message
Tom Hindle (3-launchpad-hindlemail-co-uk) wrote :
Revision history for this message
Tom Hindle (3-launchpad-hindlemail-co-uk) wrote :

XQueryBestCursor seems to just be returning what is set by xf86_cursors_init

I see that in 14.04 xorg-server is patched by xmir.patch. The xmir_screen_init function added by xmir.patch calls xf86_cursors_init(screen, 0,0,0)

I assume calling xf86_cursors_init(screen, 64,64,0) will fix the problem.

However I'm a bit confusted about which repo contains the latest xmir.patch file.
The xmir.patch in 14.04 shown by "apt-get source xorg-server" differs from the xmir.patch shown in lp:ubuntu/xorg-server. (And in the bzr history I can't see any place when xf86_cursors_init(screen, 0,0,0) is either added or removed).

affects: xmir → xorg-server (Ubuntu)
tags: added: xmir
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Closing as this relates to the old XMir. Please re-open if this still occurs in newer versions.

Changed in xorg-server (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.