mirror of https://github.com/0intro/wmii
Re-add M-f keybinding. Remember a client's size when making it fullscreen.
This commit is contained in:
parent
e8951a9d7d
commit
641b3f1a38
|
@ -135,7 +135,7 @@ destroy_area(Area *a) {
|
|||
i = 0;
|
||||
for(ta=v->area; ta != a; ta=ta->next)
|
||||
i++;
|
||||
|
||||
|
||||
if(a->prev)
|
||||
ta = a->prev;
|
||||
else
|
||||
|
|
|
@ -452,10 +452,13 @@ fullscreen(Client *c, int fullscreen) {
|
|||
|
||||
if((f = c->sel)) {
|
||||
if(fullscreen) {
|
||||
if(!f->area->floating)
|
||||
if(f->area->floating)
|
||||
f->revert = f->r;
|
||||
else
|
||||
send_to_area(f->view->area, f);
|
||||
focus_client(c);
|
||||
}
|
||||
}else
|
||||
resize_frame(f, f->revert);
|
||||
if(f->view == screen->sel)
|
||||
focus_view(screen, f->view);
|
||||
}
|
||||
|
|
|
@ -511,7 +511,7 @@ send_client(View *v, IxpMsg *m, Bool swap) {
|
|||
if(!i--) break;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if(!to && !swap && (f->anext || f != a->frame))
|
||||
to = new_column(v, a, 0);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ fn Event-ClientMouseDown {
|
|||
case Delete
|
||||
wmiir xwrite /client/$client/ctl kill
|
||||
case Fullscreen
|
||||
wmiir xwrite /client/$client/ctl Fullscreen
|
||||
wmiir xwrite /client/$client/ctl Fullscreen on
|
||||
}
|
||||
if(! ~ $#do 0)
|
||||
menulast = $do;
|
||||
|
@ -201,6 +201,8 @@ fn Key-$MODKEY-Shift-$RIGHT { wmiir xwrite /tag/sel/ctl send sel right }
|
|||
fn Key-$MODKEY-Shift-$DOWN { wmiir xwrite /tag/sel/ctl send sel down }
|
||||
fn Key-$MODKEY-Shift-$UP { wmiir xwrite /tag/sel/ctl send sel up }
|
||||
|
||||
fn Key-$MODKEY-f { wmiir xwrite /client/sel/ctl Fullscreen toggle }
|
||||
|
||||
fn Key-$MODKEY-space { wmiir xwrite /tag/sel/ctl select toggle }
|
||||
fn Key-$MODKEY-Shift-space { wmiir xwrite /tag/sel/ctl send sel toggle }
|
||||
|
||||
|
|
Loading…
Reference in New Issue