mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	cursor: fix invisible cursor on application after reconfigure
On reconfigure, we should send wl_pointer.{leave,enter} events if the
cursor is on an application surface to let the application update the
cursor, but bad788cc prevented these events from being sent.
			
			
This commit is contained in:
		
							parent
							
								
									773bdc3823
								
							
						
					
					
						commit
						6f1ef10d58
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -401,6 +401,7 @@ cursor_update_image(struct seat *seat)
 | 
				
			||||||
		if (seat->seat->pointer_state.focused_surface) {
 | 
							if (seat->seat->pointer_state.focused_surface) {
 | 
				
			||||||
			seat->server_cursor = LAB_CURSOR_DEFAULT;
 | 
								seat->server_cursor = LAB_CURSOR_DEFAULT;
 | 
				
			||||||
			wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager, "");
 | 
								wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager, "");
 | 
				
			||||||
 | 
								wlr_seat_pointer_clear_focus(seat->seat);
 | 
				
			||||||
			cursor_update_focus(seat->server);
 | 
								cursor_update_focus(seat->server);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue