xdg: don't always adjust the window size before configure

This fixes the small flicker when the client initially submits a window
size smaller than the minimum value.
This commit is contained in:
tokyo4j 2024-09-21 16:16:35 +09:00 committed by Johan Malm
parent 25f5cdd3a6
commit 31fec2f9cb

View file

@ -396,15 +396,6 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
{
uint32_t serial = 0;
/*
* Leave a size of 0x0 unchanged; this has special meaning in
* an xdg-toplevel configure event and requests the application
* to choose its own preferred size.
*/
if (!wlr_box_empty(&geo)) {
view_adjust_size(view, &geo.width, &geo.height);
}
/*
* We do not need to send a configure request unless the size
* changed (wayland has no notion of a global position). If the