fix: root client shouldn't use invisble client and floating client

This commit is contained in:
DreamMaoMao 2025-09-20 20:16:47 +08:00
parent b97f5928cf
commit daa4860853
4 changed files with 8 additions and 8 deletions

View file

@ -669,7 +669,7 @@ static void snap_scene_buffer_apply_effect(struct wlr_scene_buffer *buffer,
static void client_set_pending_state(Client *c);
static void layer_set_pending_state(LayerSurface *l);
static void set_rect_size(struct wlr_scene_rect *rect, int width, int height);
static Client *center_select(Monitor *m);
static Client *center_tiled_select(Monitor *m);
static void handlecursoractivity(void);
static int hidecursor(void *data);
static bool check_hit_no_border(Client *c);
@ -3519,7 +3519,7 @@ mapnotify(struct wl_listener *listener, void *data) {
VISIBLEON(selmon->sel, selmon)) {
at_client = selmon->sel;
} else {
at_client = center_select(selmon);
at_client = center_tiled_select(selmon);
}
at_client->link.next->prev = &c->link;