Add toplevel width and height

This commit is contained in:
Sunderland93 2018-11-28 17:59:06 +04:00
parent 1e097b0e1d
commit d81e9a08b2

View File

@ -576,6 +576,10 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
/* TODO: implement resizing */
(void)toplevel;
wl->width = wl->buffer_scale * width;
wl->height = wl->buffer_scale * height;
wl->configured = false;
}