From 8d460842d514f364edfb318613225673efe1e4ea Mon Sep 17 00:00:00 2001 From: Koen Schmeets Date: Fri, 25 Jun 2021 09:20:10 +0200 Subject: [PATCH] fix focus and border on managed windows --- src/border.c | 2 +- src/event.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/border.c b/src/border.c index 32512150..dde0c25d 100644 --- a/src/border.c +++ b/src/border.c @@ -67,7 +67,7 @@ void border_create(struct window *window) { if (window->border.id) return; - if ((!window_is_standard(window)) && (!window_is_dialog(window))) return; + if ((!window_is_standard(window) && !window->rule_manage) && (!window_is_dialog(window))) return; CGRect frame = window_ax_frame(window); CGSNewRegionWithRect(&frame, &window->border.region); diff --git a/src/event.c b/src/event.c index 051c85c9..2d5e5e6a 100644 --- a/src/event.c +++ b/src/event.c @@ -775,9 +775,9 @@ static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_MOVED) struct window *window = window_manager_find_window_at_point(&g_window_manager, point); if (window) { - if (window->id == g_window_manager.focused_window_id) return EVENT_SUCCESS; - if (!window_level_is_standard(window)) return EVENT_SUCCESS; - if (!window_is_standard(window)) return EVENT_SUCCESS; + if (window->id == g_window_manager.focused_window_id) return EVENT_SUCCESS; + if (!window_level_is_standard(window)) return EVENT_SUCCESS; + if (!window_is_standard(window) && !window->rule_manage) return EVENT_SUCCESS; if (g_window_manager.ffm_mode == FFM_AUTOFOCUS) {