mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1240 from emersion/no-hardware-cursors
output: introduce WLR_NO_HARDWARE_CURSORS
This commit is contained in:
		
						commit
						d549dc327e
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -14,6 +14,8 @@ wlroots specific
 | 
			
		|||
* *WLR_X11_OUTPUTS*: when using the X11 backend specifies the number of outputs
 | 
			
		||||
* *WLR_HEADLESS_OUTPUTS*: when using the headless backend specifies the number
 | 
			
		||||
  of outputs
 | 
			
		||||
* *WLR_NO_HARDWARE_CURSORS*: set to 1 to use software cursors instead of
 | 
			
		||||
  hardware cursors
 | 
			
		||||
 | 
			
		||||
rootston specific
 | 
			
		||||
------------------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -720,6 +720,13 @@ static bool output_cursor_attempt_hardware(struct wlr_output_cursor *cursor) {
 | 
			
		|||
		transform = cursor->surface->current.transform;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const char *no_hardware_cursors = getenv("WLR_NO_HARDWARE_CURSORS");
 | 
			
		||||
	if (no_hardware_cursors != NULL && strcmp(no_hardware_cursors, "1") == 0) {
 | 
			
		||||
		wlr_log(WLR_DEBUG,
 | 
			
		||||
			"WLR_NO_HARDWARE_CURSORS set, forcing software cursors");
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	struct wlr_output_cursor *hwcur = cursor->output->hardware_cursor;
 | 
			
		||||
	if (cursor->output->impl->set_cursor && (hwcur == NULL || hwcur == cursor)) {
 | 
			
		||||
		// If the cursor was hidden or was a software cursor, the hardware
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue