Handle commit signal

wlr_surface can change during xwayland map/unmap, so let's only update
view width and height after commit signal has been received.
This commit is contained in:
Johan Malm 2020-08-31 08:12:44 +01:00
parent 9d408aad73
commit 127eddfd96
4 changed files with 57 additions and 25 deletions

View file

@ -111,17 +111,19 @@ struct view {
struct wlr_xdg_surface *xdg_surface;
struct wlr_xwayland_surface *xwayland_surface;
struct wlr_surface *surface;
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener request_configure;
bool mapped;
bool been_mapped;
int x, y;
int x, y, w, h;
bool show_server_side_deco;
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener destroy;
struct wl_listener commit;
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener request_configure;
};
struct keyboard {