gdk/wayland: Always map windows 'moved-to-rect' as popups

Only popups can make use of the move-to-rect semantics so it makes no
sense to try anything other surface type.
This commit is contained in:
Matthias Clasen 2018-08-19 01:16:51 +00:00
parent cd40ec2200
commit 0874a54708

View File

@ -1569,6 +1569,8 @@ gdk_wayland_surface_handle_configure_popup (GdkSurface *surface,
&flipped_x,
&flipped_y);
impl->position_method = POSITION_METHOD_MOVE_TO_RECT;
g_signal_emit_by_name (surface,
"moved-to-rect",
&flipped_rect,
@ -2467,6 +2469,9 @@ should_map_as_popup (GdkSurface *surface)
break;
}
if (impl->position_method == POSITION_METHOD_MOVE_TO_RECT)
return TRUE;
return FALSE;
}