diff options
| author | Tony Crisci <tony@dubstepdish.com> | 2018-03-28 18:36:48 -0400 | 
|---|---|---|
| committer | Tony Crisci <tony@dubstepdish.com> | 2018-03-28 18:36:48 -0400 | 
| commit | 67c8aec77f27aa08528a69894a045a48d67bd658 (patch) | |
| tree | 3275339ee4066d9abb3fe5f16faed1269797af70 | |
| parent | bd828e23de77789a05ca6972ed3c41402732d19c (diff) | |
| download | wlroots-67c8aec77f27aa08528a69894a045a48d67bd658.tar.xz | |
popup constraint handle empty output layout
| -rw-r--r-- | rootston/xdg_shell_v6.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c index 9062995d..fe63e697 100644 --- a/rootston/xdg_shell_v6.c +++ b/rootston/xdg_shell_v6.c @@ -76,8 +76,10 @@ static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) {  	struct wlr_output *output =  		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;  	wlr_output_effective_resolution(output, &width, &height); | 
