mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
wayland: Record the offset position
This is needed for DND surfaces. We should probably test to see if it's used for cursor surfaces at all.
This commit is contained in:
parent
604d2155ba
commit
9688a0d7bc
@ -426,6 +426,9 @@ commit_pending_state (MetaWaylandSurface *surface,
|
|||||||
if (!cairo_region_is_empty (pending->damage))
|
if (!cairo_region_is_empty (pending->damage))
|
||||||
surface_process_damage (surface, pending->damage);
|
surface_process_damage (surface, pending->damage);
|
||||||
|
|
||||||
|
surface->offset_x += pending->dx;
|
||||||
|
surface->offset_y += pending->dy;
|
||||||
|
|
||||||
if (pending->opaque_region)
|
if (pending->opaque_region)
|
||||||
{
|
{
|
||||||
pending->opaque_region = scale_region (pending->opaque_region, surface->scale);
|
pending->opaque_region = scale_region (pending->opaque_region, surface->scale);
|
||||||
|
@ -115,6 +115,8 @@ struct _MetaWaylandSurface
|
|||||||
GSList *pending_placement_ops;
|
GSList *pending_placement_ops;
|
||||||
} sub;
|
} sub;
|
||||||
|
|
||||||
|
int32_t offset_x, offset_y;
|
||||||
|
|
||||||
gboolean has_set_geometry;
|
gboolean has_set_geometry;
|
||||||
|
|
||||||
/* All the pending state that wl_surface.commit will apply. */
|
/* All the pending state that wl_surface.commit will apply. */
|
||||||
|
Loading…
Reference in New Issue
Block a user