]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: remove warning in view_move_resize()
authorJohan Malm <jgm323@gmail.com>
Mon, 7 Mar 2022 20:59:54 +0000 (20:59 +0000)
committerJohan Malm <jgm323@gmail.com>
Mon, 7 Mar 2022 20:59:54 +0000 (20:59 +0000)
src/view.c

index 530659481c95e4d5215b14b9fafc39d376a8be75..0bf04693e2c6fbda2d74f958970b594e8b4a21d5 100644 (file)
@@ -37,12 +37,10 @@ view_move(struct view *view, double x, double y)
        wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
 }
 
+/* N.B. Use view_move() if not resizing. */
 void
 view_move_resize(struct view *view, struct wlr_box geo)
 {
-       if (view->w == geo.width && view->h == geo.height) {
-               wlr_log(WLR_ERROR, "use view_move() if not resizing");
-       }
        if (view->impl->configure) {
                view->impl->configure(view, geo);
        }