xwayland: Remove undeeded test
xwl_seat_maybe_lock_on_hidden_cursor() checks that the value of cursor_confinement_window is not NULL, yet there is no code path that could lead to this. Remove the test for cursor_confinement_window being set, it's useless. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									baa8d12e46
								
							
						
					
					
						commit
						f486e2fdaa
					
				| 
						 | 
					@ -2823,8 +2823,7 @@ xwl_seat_maybe_lock_on_hidden_cursor(struct xwl_seat *xwl_seat)
 | 
				
			||||||
     * to implement infinite panning (eg. 3D views), lock the
 | 
					     * to implement infinite panning (eg. 3D views), lock the
 | 
				
			||||||
     * pointer for so the relative pointer is used.
 | 
					     * pointer for so the relative pointer is used.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    if (xwl_seat->x_cursor ||
 | 
					    if (xwl_seat->x_cursor)
 | 
				
			||||||
        !xwl_seat->cursor_confinement_window)
 | 
					 | 
				
			||||||
        return FALSE;
 | 
					        return FALSE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!xwl_seat->focus_window)
 | 
					    if (!xwl_seat->focus_window)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue