mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1249604 - Don't use gtk_drag_set_icon_surface on GTK versions that use X SHAPE for dnd with cairo. r=karlt
MozReview-Commit-ID: 2XxnJfvfOXl
This commit is contained in:
parent
f0aa4e91e0
commit
1a00418c26
@ -468,6 +468,13 @@ nsDragService::SetAlphaPixmap(SourceSurface *aSurface,
|
||||
#ifdef cairo_image_surface_create
|
||||
#error "Looks like we're including Mozilla's cairo instead of system cairo"
|
||||
#endif
|
||||
// Prior to GTK 3.9.12, cairo surfaces passed into gtk_drag_set_icon_surface
|
||||
// had their shape information derived from the alpha channel and used with
|
||||
// the X SHAPE extension instead of being displayed as an ARGB window.
|
||||
// See bug 1249604.
|
||||
if (gtk_check_version(3, 9, 12))
|
||||
return false;
|
||||
|
||||
// TODO: grab X11 pixmap or image data instead of expensive readback.
|
||||
cairo_surface_t *surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
|
||||
dragRect.width,
|
||||
|
Loading…
Reference in New Issue
Block a user