diff options
| author | emersion <contact@emersion.fr> | 2018-01-18 12:25:39 +0100 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-01-18 12:25:39 +0100 | 
| commit | 01bcc2ab01715df1f105ab972041134c878612e0 (patch) | |
| tree | 1329ae691cd7caddced42bf0ed84dbe209a91932 /rootston/wl_shell.c | |
| parent | 5089f2d9fbcbc76c985e3a93b6fb694b57f116aa (diff) | |
| download | wlroots-01bcc2ab01715df1f105ab972041134c878612e0.tar.xz | |
rootston: damage views when moved
Diffstat (limited to 'rootston/wl_shell.c')
| -rw-r--r-- | rootston/wl_shell.c | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/rootston/wl_shell.c b/rootston/wl_shell.c index 65067920..e1dea82b 100644 --- a/rootston/wl_shell.c +++ b/rootston/wl_shell.c @@ -90,17 +90,20 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {  	int width = wlr_surface->current->width;  	int height = wlr_surface->current->height; -  	if (view->pending_move_resize.update_x) { -		view->x = view->pending_move_resize.x + +		double x = view->pending_move_resize.x +  			view->pending_move_resize.width - width; +		view_update_position(view, x, view->y);  		view->pending_move_resize.update_x = false;  	}  	if (view->pending_move_resize.update_y) { -		view->y = view->pending_move_resize.y + +		double y = view->pending_move_resize.y +  			view->pending_move_resize.height - height; +		view_update_position(view, view->x, y);  		view->pending_move_resize.update_y = false;  	} + +	view_damage(view);  }  static void handle_destroy(struct wl_listener *listener, void *data) { | 
