diff options
author | okan | 2013-05-23 16:52:39 +0000 |
---|---|---|
committer | okan | 2013-05-23 16:52:39 +0000 |
commit | 0e1a282d21c537a3a9f065464a15044befb6f4d1 (patch) | |
tree | 800f1952cd32945dea37108928df92ad489a7ab1 /client.c | |
parent | 5a8fdbc2af0bc6cb55cda04a3dc9ef09bbb40090 (diff) | |
download | cwm-0e1a282d21c537a3a9f065464a15044befb6f4d1.tar.gz |
alter conf_grab(_kbd) to first ungrab AnyKey/AnyModifier, then proceed
to grab keys in keybindingq. we don't need to ungrab/grab on every
addition to the queue, just once with a complete keybindingq; simplify
grabbing keys per screen (during init) and during a MappingNotify.
while here, change conf_grab_{kbd,mouse} to require only a Window.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. * - * $OpenBSD: client.c,v 1.132 2013/05/20 21:13:58 okan Exp $ + * $OpenBSD: client.c,v 1.133 2013/05/23 16:52:39 okan Exp $ */ #include <sys/param.h> @@ -213,7 +213,7 @@ client_setactive(struct client_ctx *cc, int fg) XInstallColormap(X_Dpy, cc->colormap); XSetInputFocus(X_Dpy, cc->win, RevertToPointerRoot, CurrentTime); - conf_grab_mouse(cc); + conf_grab_mouse(cc->win); /* * If we're in the middle of alt-tabbing, don't change * the order please. |