mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Update view position for previous configure_ack too
This commit is contained in:
		
							parent
							
								
									7904b625f0
								
							
						
					
					
						commit
						c0e2dc6f78
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -174,7 +174,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
 | 
				
			||||||
	struct wlr_xdg_surface_v6 *surface = view->xdg_surface_v6;
 | 
						struct wlr_xdg_surface_v6 *surface = view->xdg_surface_v6;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (roots_surface->move_resize.configure_serial > 0 &&
 | 
						if (roots_surface->move_resize.configure_serial > 0 &&
 | 
				
			||||||
			roots_surface->move_resize.configure_serial ==
 | 
								roots_surface->move_resize.configure_serial >=
 | 
				
			||||||
			surface->configure_serial) {
 | 
								surface->configure_serial) {
 | 
				
			||||||
		struct wlr_box size;
 | 
							struct wlr_box size;
 | 
				
			||||||
		get_size(view, &size);
 | 
							get_size(view, &size);
 | 
				
			||||||
| 
						 | 
					@ -187,7 +187,11 @@ static void handle_commit(struct wl_listener *listener, void *data) {
 | 
				
			||||||
			view->y = roots_surface->move_resize.y +
 | 
								view->y = roots_surface->move_resize.y +
 | 
				
			||||||
				roots_surface->move_resize.height - size.height;
 | 
									roots_surface->move_resize.height - size.height;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		roots_surface->move_resize.configure_serial = 0;
 | 
					
 | 
				
			||||||
 | 
							if (roots_surface->move_resize.configure_serial ==
 | 
				
			||||||
 | 
									surface->configure_serial) {
 | 
				
			||||||
 | 
								roots_surface->move_resize.configure_serial = 0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue