mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #2621 from emersion/fix-unmap-segfault
Don't use handler_context in view_unmap
This commit is contained in:
		
						commit
						d8a96c9e4d
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -583,7 +583,10 @@ void view_unmap(struct sway_view *view) {
 | 
				
			||||||
		workspace_detect_urgent(ws);
 | 
							workspace_detect_urgent(ws);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cursor_send_pointer_motion(config->handler_context.seat->cursor, 0, true);
 | 
						struct sway_seat *seat;
 | 
				
			||||||
 | 
						wl_list_for_each(seat, &input_manager->seats, link) {
 | 
				
			||||||
 | 
							cursor_send_pointer_motion(seat->cursor, 0, true);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	transaction_commit_dirty();
 | 
						transaction_commit_dirty();
 | 
				
			||||||
	view->surface = NULL;
 | 
						view->surface = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue