mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-25 01:40:24 -05:00
rollback: remove force_tile_state option
Since the non-tiled state can cause the size of some Windows to be out of sync with the synthesizer's expectations, all Windows are set to the tiled state by default again
This commit is contained in:
parent
fd3d18921d
commit
43798176f3
3 changed files with 5 additions and 33 deletions
30
src/mango.c
30
src/mango.c
|
|
@ -325,7 +325,6 @@ struct Client {
|
|||
struct dwl_animation animation;
|
||||
int isterm, noswallow;
|
||||
int allow_csd;
|
||||
int force_tile_state;
|
||||
pid_t pid;
|
||||
Client *swallowing, *swallowedby;
|
||||
bool is_clip_to_hide;
|
||||
|
|
@ -1141,7 +1140,6 @@ void toggle_hotarea(int x_root, int y_root) {
|
|||
static void apply_rule_properties(Client *c, const ConfigWinRule *r) {
|
||||
APPLY_INT_PROP(c, r, isterm);
|
||||
APPLY_INT_PROP(c, r, allow_csd);
|
||||
APPLY_INT_PROP(c, r, force_tile_state);
|
||||
APPLY_INT_PROP(c, r, noswallow);
|
||||
APPLY_INT_PROP(c, r, nofadein);
|
||||
APPLY_INT_PROP(c, r, nofadeout);
|
||||
|
|
@ -2212,9 +2210,8 @@ void commitnotify(struct wl_listener *listener, void *data) {
|
|||
setmon(c, NULL, 0,
|
||||
true); /* Make sure to reapply rules in mapnotify() */
|
||||
|
||||
if (c->force_tile_state)
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
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) {
|
||||
|
|
@ -3441,7 +3438,6 @@ void init_client_properties(Client *c) {
|
|||
c->stack_innder_per = 0.0f;
|
||||
c->isterm = 0;
|
||||
c->allow_csd = 0;
|
||||
c->force_tile_state = 1;
|
||||
}
|
||||
|
||||
void // old fix to 0.5
|
||||
|
|
@ -3554,9 +3550,8 @@ mapnotify(struct wl_listener *listener, void *data) {
|
|||
applyrules(c);
|
||||
}
|
||||
|
||||
if (c->force_tile_state)
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
|
||||
// set border color
|
||||
setborder_color(c);
|
||||
|
|
@ -4360,15 +4355,6 @@ setfloating(Client *c, int floating) {
|
|||
set_size_per(c->mon, c);
|
||||
}
|
||||
|
||||
if (!c->force_tile_state) {
|
||||
if (c->isfloating) {
|
||||
client_set_tiled(c, WLR_EDGE_NONE);
|
||||
} else {
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
arrange(c->mon, false);
|
||||
setborder_color(c);
|
||||
printstatus();
|
||||
|
|
@ -4422,14 +4408,6 @@ void setmaxmizescreen(Client *c, int maxmizescreen) {
|
|||
set_size_per(c->mon, c);
|
||||
}
|
||||
|
||||
if (!c->ismaxmizescreen && !c->force_tile_state && c->isfloating) {
|
||||
client_set_tiled(c, WLR_EDGE_NONE);
|
||||
|
||||
} else {
|
||||
client_set_tiled(c, WLR_EDGE_TOP | WLR_EDGE_BOTTOM | WLR_EDGE_LEFT |
|
||||
WLR_EDGE_RIGHT);
|
||||
}
|
||||
|
||||
arrange(c->mon, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue