summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-12 05:25:34 +0000
committerDana Jansens <danakj@orodu.net>2007-03-12 05:25:34 +0000
commitc018e212200dfece62b49c6ed385d379eb4e45e9 (patch)
tree671ce461ff859aa32594be2e79937c12e7e1ea84 /openbox/frame.c
parent310ea89e0ebb53e27550440960305ffc446ae8ce (diff)
i rewrote handling of focus events. this is pretty much based on blackbox's current form, as well as reading the xlib programming manual at:
http://tronche.com/gui/x/xlib/events/input-focus/normal-and-grabbed.html this may break for people. that'd be nice to hear about, so it can be fixed. but hopefully this is more robust. it sure is a lot more simple.
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 183260e1..06b01173 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -2,7 +2,7 @@
frame.c for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -29,7 +29,8 @@
#include "moveresize.h"
#include "render/theme.h"
-#define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask)
+#define PLATE_EVENTMASK (SubstructureRedirectMask | ButtonPressMask | \
+ FocusChangeMask)
#define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \
ButtonPressMask | ButtonReleaseMask | \
VisibilityChangeMask)