From 1bddd2a9cb5ba3bd46b1aa8c4f4502f3cddfd586 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 16 Jun 2010 19:15:14 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20crash=20when=20a=20doc?= =?utf8?q?k=20client=20starts=20up=20with=20nonsense=20coordinates=20(Than?= =?utf8?q?ks=20dothebart)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes ticket #229 --- src/manage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/manage.c b/src/manage.c index 10cf74c7..06f4e664 100644 --- a/src/manage.c +++ b/src/manage.c @@ -273,6 +273,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, if (atom[i] == atoms[_NET_WM_WINDOW_TYPE_DOCK]) { DLOG("Window is a dock.\n"); Output *t_out = get_output_containing(x, y); + if (t_out == NULL) + t_out = c_ws->output; if (t_out != c_ws->output) { DLOG("Dock client requested to be on output %s by geometry (%d, %d)\n", t_out->name, x, y); -- 2.39.5