[hackers] [wmii] Fix focus issue after restart. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 15 Sep 2011 18:38:24 +0200 (CEST)

changeset: 2792:d6ba303d560b
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Thu Sep 15 12:38:16 2011 -0400
files: cmd/wmii/client.c cmd/wmii/frame.c
description:
Fix focus issue after restart.

diff -r 7921fa9d5f7c -r d6ba303d560b cmd/wmii/client.c
--- a/cmd/wmii/client.c Wed Sep 14 18:21:18 2011 -0400
+++ b/cmd/wmii/client.c Thu Sep 15 12:38:16 2011 -0400
@@ -538,7 +538,8 @@
         sync();
         event_flush(FocusChangeMask, true);
 
- Dprint(DFocus, "client_focus([%#C]%C)\n", c, c);
+ Dprint(DFocus, "client_focus([%#C]%C) collapsed=%s\n",
+ c, c, c && c->sel->collapsed ? "true" : "false");
         Dprint(DFocus, "\t[%#C]%C\n\t=> [%#C]%C\n",
                disp.focus, disp.focus, c, c);
 
@@ -700,9 +701,7 @@
 client_seturgent(Client *c, int urgent, int from) {
         XWMHints *wmh;
         char *cfrom, *cnot;
- Frame *f, *ff;
- Area *a;
- int s;
+ Frame *f;
 
         if(urgent == Toggle)
                 urgent = c->urgent ^ On;
diff -r 7921fa9d5f7c -r d6ba303d560b cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Wed Sep 14 18:21:18 2011 -0400
+++ b/cmd/wmii/frame.c Thu Sep 15 12:38:16 2011 -0400
@@ -609,11 +609,12 @@
                 move_focus(old_f, f);
                 if(a->floating)
                         float_arrange(a);
- client_focus(f->client);
 
                 // if(!a->floating && ((a->mode == Colstack) || (a->mode == Colmax)))
                 if(true)
                         column_arrange(a, false);
+
+ client_focus(f->client);
         }
 }
 
Received on Thu Sep 15 2011 - 18:38:24 CEST

This archive was generated by hypermail 2.2.0 : Thu Sep 15 2011 - 18:48:05 CEST