[hackers] [wmii] Focus frame and bring it to the top on move/resize.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Feb 09 02:40:27 2007

changeset: 1791:3e90d9862047
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 08 20:39:10 2007 -0500
summary: Focus frame and bring it to the top on move/resize.

diff -r 9f9f211bab09 -r 3e90d9862047 event.c
--- a/event.c Thu Feb 08 20:36:22 2007 -0500
+++ b/event.c Thu Feb 08 20:39:10 2007 -0500
@@ -88,10 +88,15 @@ buttonpress(XEvent *e) {
                         switch(ev->button) {
                         case Button1:
                                 do_mouse_resize(f->client, CENTER);
+ focus(f->client, True);
+ frame_to_top(f);
+ focus(f->client, True);
                                 break;
                         case Button3:
                                 do_mouse_resize(f->client,
                                                 quadofcoord(&f->client->rect, ev->x, ev->y));
+ frame_to_top(f);
+ focus(f->client, True);
                         default:
                                 XAllowEvents(blz.dpy, ReplayPointer, ev->time);
                         break;
Received on Fri Feb 09 2007 - 02:40:27 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:01 UTC