After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707445 - ghost cursor when mouse hovers over an image file in a tab
ghost cursor when mouse hovers over an image file in a tab
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 707494 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-04 08:53 UTC by Sindhu S
Modified: 2013-09-06 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (3.13 KB, text/plain)
2013-09-06 14:52 UTC, Claudio Saavedra
  Details
gdk_pixbuf_get_from_source: only reuse surfaces with matching format (1.02 KB, patch)
2013-09-06 15:46 UTC, Claudio Saavedra
committed Details | Review

Description Sindhu S 2013-09-04 08:53:41 UTC
I have epiphany built from git master today. There is an odd cursor appearing when mouse pointer is on an image that is opened inside epiphany. If I take a screenshot, in the screenshot the normal mouse pointer appears.
Comment 1 Claudio Saavedra 2013-09-04 10:00:52 UTC
Actually a WK bug. I can reproduce this in MiniBrowser and GtkLauncher.
Comment 2 Claudio Saavedra 2013-09-04 19:20:31 UTC
*** Bug 707494 has been marked as a duplicate of this bug. ***
Comment 3 Claudio Saavedra 2013-09-06 14:52:06 UTC
Created attachment 254253 [details]
Test case

Test case showing the bug.
Comment 4 Claudio Saavedra 2013-09-06 15:04:06 UTC
So this seems to be a bug in GTK+. The following commit is the first where this happens:

commit 54f5e4af53f520fa621218e02110c40286975513
Author: Alexander Larsson <alexl@redhat.com>
Date:   Tue Aug 6 16:18:13 2013 +0200

    gdk_pixbuf_get_from_surface: Avoid copying if source is image surface
    
    If the source surface is an image surface we don't need to coerce
    it to one.
Comment 5 Claudio Saavedra 2013-09-06 15:22:51 UTC
I might be stupidly wrong but my bet is that convert_alpha() cannot deal with CAIRO_FORMAT_A1 ?
Comment 6 Claudio Saavedra 2013-09-06 15:46:21 UTC
Created attachment 254262 [details] [review]
gdk_pixbuf_get_from_source: only reuse surfaces with matching format

Otherwise the convertion functions will return rubbish.
Comment 7 Benjamin Otte (Company) 2013-09-06 15:48:27 UTC
Comment on attachment 254262 [details] [review]
gdk_pixbuf_get_from_source: only reuse surfaces with matching format

Typo in commit message:

s/convertion/convestion/
Comment 8 Claudio Saavedra 2013-09-06 15:51:08 UTC
Attachment 254262 [details] pushed as 0735aa1 - gdk_pixbuf_get_from_source: only reuse surfaces with matching format