]> git.mdlowis.com Git - proto/labwc.git/commit
xdg: Eliminate redundant update_x/update_y flags
authorJohn Lindgren <john@jlindgren.net>
Wed, 8 Feb 2023 21:14:06 +0000 (16:14 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 8 Feb 2023 22:22:10 +0000 (22:22 +0000)
commitcfc3c93102f0fe2b0bbd21b04ea32b357548b249
tree009c06e08e637aa61aa5ca1b511c3792cc1b933c
parenta417c1c76118321ea85741f95da0a6db833095d9
xdg: Eliminate redundant update_x/update_y flags

struct view's pending_move_resize.update_x/update_y flags appear to
be redundant, since we can easily determine whether x/y have been
update via a simple comparison in handle_commit().

The only corner case I can think of where this change might affect
behavior, is if xdg_toplevel_view_move() is called while a resize
is still pending (e.g. after xdg_toplevel_view_configure() but
before handle_commit()). This corner case will be addressed in the
following commit.
include/view.h
src/xdg.c