Mir

Xmir: supertux2 has two mouse pointers (one should be hidden)

Bug #1605074 reported by dinamic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Invalid
Undecided
Unassigned
libsdl2 (Ubuntu)
Invalid
Undecided
Unassigned
qtmir (Ubuntu)
Invalid
Undecided
Unassigned
xorg-server (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

2 mouse pointers (one should be hidden)
i've seen this in a lot (all?) the games on mir or Xmir

see attached screenshot

Revision history for this message
dinamic (dinamic6661) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm guessing either the game or SDL2 isn't implementing cursor hiding yet.

Changed in mir:
status: New → Invalid
affects: unity8 (Ubuntu) → libsdl2 (Ubuntu)
Revision history for this message
dinamic (dinamic6661) wrote :

could be SDL2/mir, the game is hiding the cursor on X11

Revision history for this message
dinamic (dinamic6661) wrote :

here's a screenshot with supertux on X11

kevin gunn (kgunn72)
tags: added: unity8-desktop
Revision history for this message
dinamic (dinamic6661) wrote :

Daniel, here's a video with Supertux on X11 and Mir (you can see better the bugs here, 2 mouse pointers, full screen not working) https://www.youtube.com/watch?v=BVhlunj1Evk

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks but no more information needed. We can reproduce it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libsdl2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

This is qtmir not hiding its cursor (mir does not control this nor would sdl2)

The code where the SDL mouse hides.
https://hg.libsdl.org/SDL/file/afd286e26823/src/video/mir/SDL_mirmouse.c#l231

Changed in libsdl2 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Though this is on xmir, it is for sure implemented in the x11 sdl2 code

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Where it would happen in sdl2 x11 code.

https://hg.libsdl.org/SDL/file/afd286e26823/src/video/x11/SDL_x11mouse.c#l281

Also if the cursor hides on U7 but not U8, then this is a U8 bug

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Brandon, assuming the game & SDL work the same on U7 and XMir the problem isn't there. So that's not where I'd be looking.

The things to check are:

1. XMir passes "hide cursor" to mir-client?
2. mir-client passes "hide cursor" to mir-server
3. mir-server passes "hide cursor" to QtMir
4. QtMir passes "hide cursor" to Unity8

A test with another Mir server (e.g. miral-shell) works would determine if the problem is above or below #3.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

And (testing xenial packages) there are two cursors with miral-shell.

Changed in qtmir:
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: supertux2 has two mouse pointers (one should be hidden)

Tested supertux2 on:

Unity7: one cursor
Xmir: two cursors

Native SDL2 on Mir it just crashes so I can't test that. But given it works in Unity7 it seems the common point of failure is Xmir.

summary: - 2 mouse pointers (one should be hidden)
+ supertux2 has two mouse pointers (one should be hidden)
Changed in xorg-server (Ubuntu):
status: New → Confirmed
tags: added: xmir
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Related -> bug 1605478

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

It crashes on native because glew :(... need to fix the assumption that linx == x11

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

You can see the same thing running 7kaa on Xmir. 7kaa hides the cursor fine when run with SDL_VIDEODRIVER=mir.

Revision history for this message
dinamic (dinamic6661) wrote :

Mir: 2 pointers

(see attached screenshot)

Revision history for this message
dinamic (dinamic6661) wrote :

am i doing something wrong? seems to work for me, 'ubuntu-app-launch supertux2'

Revision history for this message
dinamic (dinamic6661) wrote :

installed with libertine, the game is not even playable, right arrow only move tux once and then stops... it looks like keyboard repeat rate is 0? (not to mention that it takes ages to open apps from Xapps)

Revision history for this message
dinamic (dinamic6661) wrote :

running side by side, Xmir and MIR (see attachement)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The current Xmir may indeed have broken key behaviour for some apps. I never found an app that was broken but noticed the mistake in source code and fixed it (will be fixed in the next Xmir). You'll need to wait for the next Xmir release.

Also, we can reproduce this bug now. So there's no need to add any more attachments.

Changed in xorg-server (Ubuntu):
importance: Undecided → Low
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

dinamic: Yes, confirmed holding the arrow keys is broken for supertux2 in the yakkety version of Xmir, but also definitely fixed ready for the next version:
   https://git.launchpad.net/~xmir-team/xorg-server/+git/xmir/commit/?id=f704937aa59132b612a1c4802018b86c98e620ca

Revision history for this message
dinamic (dinamic6661) wrote :

yay! :D

summary: - supertux2 has two mouse pointers (one should be hidden)
+ Xmir: supertux2 has two mouse pointers (one should be hidden)
Michał Sawicz (saviq)
affects: qtmir → qtmir (Ubuntu)
Changed in xorg-server (Ubuntu):
status: Confirmed → Won't Fix
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.