]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: add defence
authorJohan Malm <jgm323@gmail.com>
Thu, 20 Aug 2020 20:13:37 +0000 (21:13 +0100)
committerJohan Malm <jgm323@gmail.com>
Thu, 20 Aug 2020 20:13:37 +0000 (21:13 +0100)
src/view.c

index bbcf380eb983ad0dcb44c0f013815dca06ef4cff..a9bab272eb924ac68ae5aedf7a3ee570aac3285a 100644 (file)
@@ -254,6 +254,8 @@ struct view *view_at(struct server *server, double lx, double ly,
         */
        struct view *view;
        wl_list_for_each (view, &server->views, link) {
+               if (!view->been_mapped)
+                       continue;
                if (_view_at(view, lx, ly, surface, sx, sy))
                        return view;
                if (!view->show_server_side_deco)