wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 4ebbc14e246a1ab6a2f783b43e8285e311abf189
parent 8ba6c84f1c67dc5fb6a207adc9f1949b400f4b51
Author: Kris Maglione <jg@suckless.org>
Date:   Sun, 20 Jan 2008 18:29:04 -0500

Uncollapse clients when setting them fullscreen.

Diffstat:
TODO | 24++++--------------------
cmd/wmii/frame.c | 5++++-
cmd/wmii/view.c | 1+
3 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/TODO b/TODO @@ -1,29 +1,13 @@ BUGS -* 'Fullscreen' menu option broken for menus in non-focused titlebars (stackmode). * collapsed clients outside stacked mode don't always uncollapse when they receive focus * resizing within a column affects clients it shouldn't (seems to average client size?) * geometry goes wacky with lots of clients in one column -* floating clients have a tendency to move after being retagged -* creating new columns via mouse drag doesn't work anymore -* * various qiv brokenness -* firefox full screen only works sometimes (and coming back from fs is broken) * dosbox won't grab the mouse -3.6 -[bugfix only] - 4.0 -* Working grab boxes -* Grow(and shrink?) ctl commands -* Switch to mk for building -* Use libbio, libfmt, libregex9 -* New dmenu(with real cursor and using Bio)? (use 9menu instead?) -* Depend on p9p and replace script mess with a single set using p9p commands - -4.1 -* Resizable managed area -* bring back col creation with the mouse -* (Multi line) Tag bars * Regex-based tag strings -* Get rid of colmodes? (they suck, but sort of work and we need max mode anyway) +* Resizable managed area +* Grow and shrink ctl commands +* New dmenu, with real cursor. + diff --git a/cmd/wmii/frame.c b/cmd/wmii/frame.c @@ -225,6 +225,7 @@ Handlers framehandler = { .motion = motion_event, }; +/* These must die!!! */ Rectangle frame_rect2client(Frame *f, Rectangle r) { if(f == nil || f->area == nil || f->area->floating) { @@ -278,6 +279,8 @@ frame_resize(Frame *f, Rectangle r) { stickycorner = get_sticky(f->r, r); f->crect = frame_hints(f, r, stickycorner); + if(c->fullscreen) + f->crect = screen->r; if(Dx(r) <= 0 || Dy(r) <= 0) fprint(2, "Badness: Frame rect: %R\n", r); @@ -305,7 +308,7 @@ frame_resize(Frame *f, Rectangle r) { } if(f->collapsed) { - f->r.max.y= f->r.min.y + labelh(def.font); + f->r.max.y = f->r.min.y + labelh(def.font); f->crect = f->r; } diff --git a/cmd/wmii/view.c b/cmd/wmii/view.c @@ -139,6 +139,7 @@ view_focus(WMScreen *s, View *v) { for(a=v->area; a; a=a->next) for(f=a->frame; f; f=f->anext) if(f->client->fullscreen) { + f->collapsed = false; fscrn = true; if(!f->area->floating) { f->oldr = f->revert;