From 0692135cd7a808f5bf6c49e6ea54356862be34e7 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 15 Oct 2025 18:40:56 +0800 Subject: [PATCH] opt: set init properties value in init commit --- src/mango.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mango.c b/src/mango.c index 75f279f..9a6d0bf 100644 --- a/src/mango.c +++ b/src/mango.c @@ -725,6 +725,7 @@ static void set_size_per(Monitor *m, Client *c); static void resize_tile_client(Client *grabc, bool isdrag, int offsetx, int offsety, unsigned int time); static void refresh_monitors_workspaces_status(Monitor *m); +static void init_client_properties(Client *c); #include "data/static_keymap.h" #include "dispatch/bind_declare.h" @@ -2203,6 +2204,7 @@ void commitnotify(struct wl_listener *listener, void *data) { if (c->surface.xdg->initial_commit) { // xdg client will first enter this before mapnotify + init_client_properties(c); applyrules(c); if (c->mon) { client_set_scale(client_surface(c), c->mon->wlr_output->scale);