From 691d0ef27d9fdedb9ef0b9a847eabd5186a6b2a5 Mon Sep 17 00:00:00 2001 From: watasuke102 Date: Mon, 16 Jan 2023 16:22:09 +0900 Subject: [PATCH] fix focusing on immersive --- zen/ui/zigzag-layout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zen/ui/zigzag-layout.c b/zen/ui/zigzag-layout.c index e1c2c15c..a3d7bd8e 100644 --- a/zen/ui/zigzag-layout.c +++ b/zen/ui/zigzag-layout.c @@ -134,5 +134,9 @@ notify_click_recursive(struct wl_list *nodes, double x, double y) bool zn_zigzag_layout_notify_click(struct zn_zigzag_layout *self, double x, double y) { + struct zn_server *server = zn_server_get_singleton(); + if (server->display_system == ZN_DISPLAY_SYSTEM_IMMERSIVE) { + return false; + } return notify_click_recursive(&self->zigzag_layout->node_list, x, y); }