From e4627bcaed2029f1c49d38ec6b09981b5e8374bf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 5 Mar 2009 02:17:10 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20re-initialize=20Xinerama=20on?= =?UTF-8?q?=20every=20configurenotify.=20This=20needs=20to=20be=20fixed=20?= =?UTF-8?q?properly.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index 5c609256..c756cb22 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -360,7 +360,10 @@ int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_n if (event->event == root) { printf("reconfigure of the root window, need to xinerama\n"); - xinerama_requery_screens(conn); + /* FIXME: Somehow, this is occuring too often. Therefore, we check for 0/0, + but is there a better way? */ + if (event->x == 0 && event->y == 0) + xinerama_requery_screens(conn); return 1; }