mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	cursor: update output cursor even if output is disabled
During suspend, we first disable output and then remove the input device.
This causes cursor->state->surface released while cursor->texture leaves.
Which leads to use-after-free after resume.
(cherry picked from commit be5e266211)
			
			
This commit is contained in:
		
							parent
							
								
									aa904ccf06
								
							
						
					
					
						commit
						c1938f79c3
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -530,10 +530,6 @@ static void cursor_output_cursor_update(struct wlr_cursor_output_cursor *output_
 | 
				
			||||||
	struct wlr_cursor *cur = output_cursor->cursor;
 | 
						struct wlr_cursor *cur = output_cursor->cursor;
 | 
				
			||||||
	struct wlr_output *output = output_cursor->output_cursor->output;
 | 
						struct wlr_output *output = output_cursor->output_cursor->output;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!output->enabled) {
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	cursor_output_cursor_reset_image(output_cursor);
 | 
						cursor_output_cursor_reset_image(output_cursor);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (cur->state->buffer != NULL) {
 | 
						if (cur->state->buffer != NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue