diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-09-27 21:04:41 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-09-27 21:04:41 +0200 |
| commit | 96e3e0d022960d679ce23ea1ebe0859ed81048fd (patch) | |
| tree | 37cf93fed364ec9bef4a26d259544e4c7aa97784 | |
| parent | 9c60823871c50f5aad93ad73c4b16a0985fb4918 (diff) | |
Another fix for resizing
Still having trouble with the double configure_notify_events,
seems the second one with the correct coordinates are sent
so use that
| -rw-r--r-- | src/main.cc | 2 |
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; |
