opt:only scale first frame in open
This commit is contained in:
2
maomao.c
2
maomao.c
@@ -3722,6 +3722,7 @@ mapnotify(struct wl_listener *listener, void *data) {
|
|||||||
c->istiled = 0;
|
c->istiled = 0;
|
||||||
c->iskilling = 0;
|
c->iskilling = 0;
|
||||||
c->scroller_proportion = scroller_default_proportion;
|
c->scroller_proportion = scroller_default_proportion;
|
||||||
|
c->need_scale_first_frame = true;
|
||||||
// nop
|
// nop
|
||||||
if (new_is_master &&
|
if (new_is_master &&
|
||||||
strcmp(selmon->pertag->ltidxs[selmon->pertag->curtag]->name,
|
strcmp(selmon->pertag->ltidxs[selmon->pertag->curtag]->name,
|
||||||
@@ -4495,7 +4496,6 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||||||
|
|
||||||
// wl_event_source_timer_update(c->timer_tick, 10);
|
// wl_event_source_timer_update(c->timer_tick, 10);
|
||||||
c->need_output_flush = true;
|
c->need_output_flush = true;
|
||||||
c->need_scale_first_frame = true;
|
|
||||||
|
|
||||||
// oldgeom = c->geom;
|
// oldgeom = c->geom;
|
||||||
bbox = interact ? &sgeom : &c->mon->w;
|
bbox = interact ? &sgeom : &c->mon->w;
|
||||||
|
|||||||
Reference in New Issue
Block a user