Skip to content
Snippets Groups Projects
Commit 0b161909 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf
Browse files

xdg-shell: update window geometry with ack

This makes sure that the window geometry is updated before the first
new size buffer is attached.
parent dabfd605
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,8 @@ static void ResizeAck(vout_window_t *wnd, unsigned width, unsigned height,
if (serial != NULL)
xdg_surface_ack_configure(sys->surface, *serial);
xdg_surface_set_window_geometry(sys->surface, 0, 0, width, height);
#else
(void) wnd; (void) width; (void) height; (void) data;
#endif
......@@ -180,7 +182,6 @@ static void ReportSize(vout_window_t *wnd, void *data)
unsigned height = sys->wm.height ? sys->wm.height : sys->set.height;
wnd->owner.cbs->resized(wnd, width, height, ResizeAck, data);
xdg_surface_set_window_geometry(sys->surface, 0, 0, width, height);
}
static void Resize(vout_window_t *wnd, unsigned width, unsigned height)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment