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:
Jonas Ådahl
2018-08-10 17:10:16 +02:00
parent 1ed53199c5
commit 595f3902c8

View File

@@ -1877,6 +1877,8 @@ gdk_wayland_window_handle_configure_popup (GdkWindow *window,
&flipped_x,
&flipped_y);
impl->position_method = POSITION_METHOD_MOVE_TO_RECT;
g_signal_emit_by_name (window,
"moved-to-rect",
&flipped_rect,
@@ -2806,6 +2808,9 @@ should_map_as_popup (GdkWindow *window)
break;
}
if (impl->position_method == POSITION_METHOD_MOVE_TO_RECT)
return TRUE;
return FALSE;
}