summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index a00d4c7..2870e51 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -888,7 +888,7 @@ void xcb_event_loop(x::shared_connection const& conn,
}
case XCB_CONFIGURE_NOTIFY: {
auto e = reinterpret_cast<xcb_configure_notify_event_t*>(event.get());
- if (monmon->match(e->window)) {
+ if (XCB_EVENT_SENT(e) && monmon->match(e->window)) {
monmon->configure(e->x, e->y, e->width, e->height);
}
break;