From d14d9d3439c006e04c90400d10c28838871ac731 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 11 Jul 2022 14:49:56 +0200 Subject: [PATCH] xdg_popup: Fix output-check for secondary displays --- src/wayland/handlers/xdg_shell/popup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/handlers/xdg_shell/popup.rs b/src/wayland/handlers/xdg_shell/popup.rs index e8fa88f3..608a3380 100644 --- a/src/wayland/handlers/xdg_shell/popup.rs +++ b/src/wayland/handlers/xdg_shell/popup.rs @@ -87,7 +87,7 @@ fn unconstrain_xdg_popup( if let Some(output_rect) = space .outputs_for_window(window) .into_iter() - .find(|o| o.geometry().contains(anchor_point)) + .find(|o| space.output_geometry(o).map(|rect| rect.contains(anchor_point)).unwrap_or(false)) .map(|o| space.output_geometry(&o).unwrap()) { // the output_rect represented relative to the parents coordinate system