mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-30 19:44:17 +00:00 
			
		
		
		
	reset cursor mode when grabc is unmapped
This commit is contained in:
		
							parent
							
								
									d4e08c0762
								
							
						
					
					
						commit
						79dcc0d327
					
				
							
								
								
									
										4
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dwl.c
									
									
									
									
									
								
							| @ -2292,6 +2292,10 @@ unmapnotify(struct wl_listener *listener, void *data) | |||||||
| { | { | ||||||
| 	/* Called when the surface is unmapped, and should no longer be shown. */ | 	/* Called when the surface is unmapped, and should no longer be shown. */ | ||||||
| 	Client *c = wl_container_of(listener, c, unmap); | 	Client *c = wl_container_of(listener, c, unmap); | ||||||
|  | 	if (c == grabc) { | ||||||
|  | 		cursor_mode = CurNormal; | ||||||
|  | 		grabc = NULL; | ||||||
|  | 	} | ||||||
| 	wl_list_remove(&c->link); | 	wl_list_remove(&c->link); | ||||||
| 	if (client_is_unmanaged(c)) | 	if (client_is_unmanaged(c)) | ||||||
| 		return; | 		return; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tobias Bengfort
						Tobias Bengfort