]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t crash when a dock client starts up with nonsense coordinates (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 16 Jun 2010 17:15:14 +0000 (19:15 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 16 Jun 2010 17:15:14 +0000 (19:15 +0200)
This fixes ticket #229

src/manage.c

index 10cf74c7eb612279a738dd46d68633a30c85edcf..06f4e664338f736dceca5034a1486c64cea13951 100644 (file)
@@ -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);