mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05:00
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:
parent
9d408aad73
commit
127eddfd96
4 changed files with 57 additions and 25 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue