mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	popup constraint handle empty output layout
This commit is contained in:
		
							parent
							
								
									bd828e23de
								
							
						
					
					
						commit
						67c8aec77f
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -76,8 +76,10 @@ static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_output *output =
 | 
						struct wlr_output *output =
 | 
				
			||||||
		wlr_output_layout_output_at(layout, dest_x, dest_y);
 | 
							wlr_output_layout_output_at(layout, dest_x, dest_y);
 | 
				
			||||||
	// XXX: handle empty output layout
 | 
					
 | 
				
			||||||
	assert(output);
 | 
						if (output == NULL) {
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int width = 0, height = 0;
 | 
						int width = 0, height = 0;
 | 
				
			||||||
	wlr_output_effective_resolution(output, &width, &height);
 | 
						wlr_output_effective_resolution(output, &width, &height);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue