From: Michael Stapelberg Date: Wed, 16 Jun 2010 17:15:14 +0000 (+0200) Subject: Bugfix: Don’t crash when a dock client starts up with nonsense coordinates (Thanks... X-Git-Tag: 4.0~67 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1bddd2a9cb5ba3bd46b1aa8c4f4502f3cddfd586;p=i3%2Fi3 Bugfix: Don’t crash when a dock client starts up with nonsense coordinates (Thanks dothebart) This fixes ticket #229 --- 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);