summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2008-06-12 05:01:14 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2008-06-12 05:01:14 +0000
commit1566ff768a0b51b28e01d3a2a0ee873cd7f46597 (patch)
tree786ad24b25dfc7721f3675b5ae9e2a7bb94ccdc4 /app/cwm
parent54765ebfea23b08acbd5220a1f42842c49bc93b0 (diff)
ignore if non-zero expose events, for we could be covered by multiple
windows; merely an optimization. ok oga@
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/xevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 5721543e4..99bf5b596 100644
--- a/app/cwm/xevents.c
+++ b/app/cwm/xevents.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: xevents.c,v 1.16 2008/05/21 14:11:19 oga Exp $
+ * $Id: xevents.c,v 1.17 2008/06/12 05:01:13 okan Exp $
*/
/*
@@ -506,7 +506,7 @@ xev_handle_expose(struct xevent *xev, XEvent *ee)
XExposeEvent *e = &ee->xexpose;
struct client_ctx *cc;
- if ((cc = client_find(e->window)) != NULL)
+ if ((cc = client_find(e->window)) != NULL && e->count == 0)
client_draw_border(cc);
xev_register(xev);