[hackers] [wmii] Check f->area->floating rather than f->client->floating when drawing its frame.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Jan 21 00:31:07 2008

changeset: 2235:39545a2ab9aa
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Jan 19 18:23:52 2008 -0500
summary: Check f->area->floating rather than f->client->floating when drawing its frame.

diff -r 22d23ba8e687 -r 39545a2ab9aa cmd/wmii/client.c
--- a/cmd/wmii/client.c Sat Jan 19 18:05:50 2008 -0500
+++ b/cmd/wmii/client.c Sat Jan 19 18:23:52 2008 -0500
@@ -193,9 +193,9 @@ client_manage(Client *c) {
                      || selclient() && (selclient()->group == c->group);
 
         f = c->sel;
- if((f->view == screen->sel)
- && (!(c->w.ewmh.type & TypeSplash))
- && newgroup) {
+ if(f->view == screen->sel)
+ if(!(c->w.ewmh.type & TypeSplash))
+ if(newgroup) {
                 if(f->area != f->view->sel)
                         f->view->oldsel = f->view->sel;
                 focus(c, false);
diff -r 22d23ba8e687 -r 39545a2ab9aa cmd/wmii/column.c
--- a/cmd/wmii/column.c Sat Jan 19 18:05:50 2008 -0500
+++ b/cmd/wmii/column.c Sat Jan 19 18:23:52 2008 -0500
@@ -49,6 +49,8 @@ column_attach(Area *a, Frame *f) {
 column_attach(Area *a, Frame *f) {
         uint nframe;
         Frame *ft;
+
+ f->client->floating = false;
 
         nframe = 0;
         for(ft=a->frame; ft; ft=ft->anext)
diff -r 22d23ba8e687 -r 39545a2ab9aa cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Sat Jan 19 18:05:50 2008 -0500
+++ b/cmd/wmii/frame.c Sat Jan 19 18:23:52 2008 -0500
@@ -492,7 +492,7 @@ frame_draw(Frame *f) {
         w = drawstring(screen->ibuf, def.font, r, WEST,
                         f->client->name, col->fg);
 
- if(f->client->floating) {
+ if(f->area->floating) {
                 r.min.x = r.min.x + w + 10;
                 r.max.x = f->titlebar.max.x + 1;
                 r.min.y = f->grabbox.min.y;
Received on Mon Jan 21 2008 - 00:31:07 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:00 UTC