← Back to team overview

compiz team mailing list archive

[Bug 1585329] Re: Sometimes a black rectangle appears briefly under the mouse cursor

 

Even more interesting...

I'm developing a small game in SDL.
It runs in a window, hides the cursor, and in every frame moves the cursor to the center of the window.
But if I move the mouse fast enough for the cursor to exit the window, it is shown for a split second and, more importantly, that black rectangle flashes in the screen under the cursor.

So, this graphical glitch occurs when the mouse cursor is shown or
hidden!

This bug can be easily reproduced by following these steps:
1. Open a gnome-terminal
2. Move the mouse cursor to inside the window
3. Press and hold any letter in the keyboard, like 'A', to enter that letter repeatedly into the terminal, which will also hide the mouse cursor
4. Start moving the mouse cursor, keeping it inside the window, and the problem will manifest

This issue occurs also in a guest session and a live session (after I disable the phantom 2nd monitor due to NVidia Optimus), so it's not because of any change I made to the system.
And like I said above, I'm using a laptop with Nvidia Optimus (Nvidia driver installed, Intel card selected).

I also just now tried reproducing this bug in GNOME Session Flashback, and I managed to reproduce it both with Compiz and Metacity.
So, this issue isn't neither in Unity nor in Compiz! Maybe in X11.

Could a developer take a look into this issue?
I think there's enough info to go on now.
If you need more info, just ask.

** Also affects: xorg-server (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: compiz (Ubuntu)
       Status: New => Invalid

** Changed in: unity (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1585329

Title:
  Sometimes a black rectangle appears briefly under the mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1585329/+subscriptions


References