From 96e3e0d022960d679ce23ea1ebe0859ed81048fd Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 27 Sep 2017 21:04:41 +0200 Subject: 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 --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(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; -- cgit v1.3