aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authoroga2008-05-19 15:17:50 +0000
committeroga2008-05-19 15:17:50 +0000
commita47b4ccaab4803eba1fb0774e26abd3ed06f9fd4 (patch)
treed464c9dc57d07c9f8085f6e6aa2865ba49f13fcb /client.c
parent281da1fba3c4cf7c09351c088ec4f5793f9ce96e (diff)
downloadcwm-a47b4ccaab4803eba1fb0774e26abd3ed06f9fd4.tar.gz
Use the XGrabKeyboard hack in for alt-tabbing as well. This stops the
mru getting the order messed up when gvim/xpdf et all steal key events. While i'm here, change the logic in client_cyclenext() to use break instead of goto, it's nicer that way. Thirdly, instead of two different kbfuncs, just use the one and a flag. "put your cycle diff in so I can pkg_delete gvim" okan@
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index b869ab5..5d9f185 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: client.c,v 1.24 2008/05/19 12:56:58 okan Exp $
+ * $Id: client.c,v 1.25 2008/05/19 15:17:50 oga Exp $
*/
#include "headers.h"
@@ -620,10 +620,10 @@ client_cyclenext(int reverse)
if (again)
return (NULL); /* No windows visible. */
- goto done;
+ break;
}
}
-done:
+
/* reset when alt is released. XXX I hate this hack */
sc->altpersist = 1;
client_ptrsave(oldcc);