mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
wayland/popup: Remove unnecessary checks when mapping popup
We only call this when we're not already mapped so don't check that. We also only call this when we should be mapped so don't check that either.
This commit is contained in:
parent
3eea9f3e79
commit
71323a8b48
@ -2697,12 +2697,6 @@ gdk_wayland_surface_map_popup (GdkSurface *surface,
|
|||||||
GdkSurface *parent;
|
GdkSurface *parent;
|
||||||
GdkWaylandSeat *grab_input_seat;
|
GdkWaylandSeat *grab_input_seat;
|
||||||
|
|
||||||
if (!should_be_mapped (surface))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (impl->mapped)
|
|
||||||
return;
|
|
||||||
|
|
||||||
parent = surface->parent;
|
parent = surface->parent;
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user