mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
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.
This commit is contained in:
parent
a417c1c761
commit
cfc3c93102
2 changed files with 2 additions and 5 deletions
|
|
@ -65,7 +65,6 @@ struct view {
|
|||
struct wlr_box natural_geometry;
|
||||
|
||||
struct view_pending_move_resize {
|
||||
bool update_x, update_y;
|
||||
int x, y;
|
||||
uint32_t width, height;
|
||||
uint32_t configure_serial;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue