mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-18 06:59:53 -05:00
opt: not set tile state in init if disable force_tile_state
This commit is contained in:
parent
d9e08a6b26
commit
a4a600c053
1 changed files with 6 additions and 4 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -2210,8 +2210,9 @@ void commitnotify(struct wl_listener *listener, void *data) {
|
|||
setmon(c, NULL, 0,
|
||||
true); /* Make sure to reapply rules in mapnotify() */
|
||||
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
if (c->force_tile_state)
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
|
||||
uint32_t serial = wlr_xdg_surface_schedule_configure(c->surface.xdg);
|
||||
if (serial > 0) {
|
||||
|
|
@ -3547,8 +3548,9 @@ mapnotify(struct wl_listener *listener, void *data) {
|
|||
applyrules(c);
|
||||
}
|
||||
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
if (c->force_tile_state)
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
|
||||
// set border color
|
||||
setborder_color(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue