mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: set init properties value in init commit
This commit is contained in:
parent
3acd3805a6
commit
1cfa5885e7
1 changed files with 2 additions and 0 deletions
|
|
@ -720,6 +720,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"
|
||||
|
|
@ -2251,6 +2252,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue