Send surface enter/leave events

This commit is contained in:
Drew DeVault 2018-02-25 17:23:36 -05:00
parent 61c1c3e7af
commit 8ad26c8afd
3 changed files with 45 additions and 0 deletions

View file

@ -72,6 +72,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
wl_container_of(listener, sway_surface, commit);
struct sway_view *view = sway_surface->view;
// NOTE: We intentionally discard the view's desired width here
// TODO: Store this for restoration when moving to floating plane
// TODO: Let floating views do whatever
view->width = sway_surface->pending_width;
view->height = sway_surface->pending_height;