mirror of
https://github.com/labwc/labwc.git
synced 2026-03-20 05:34:12 -04:00
view: eliminate store_natural_geometry arguments
These were added to fix handling of natural geometry for snap-to-edge
behavior back in 9021020f6e and seemed like a good idea at the time.
Since then, the number of call sites has exploded, so it seems more
maintainable to put explicit checks for interactive move within the
three functions affected.
This commit is contained in:
parent
742c2b53fd
commit
f5909ac54d
7 changed files with 36 additions and 46 deletions
|
|
@ -470,7 +470,7 @@ handle_request_maximize(struct wl_listener *listener, void *data)
|
|||
if (surf->maximized_horz) {
|
||||
maximize |= VIEW_AXIS_HORIZONTAL;
|
||||
}
|
||||
view_maximize(view, maximize, /*store_natural_geometry*/ true);
|
||||
view_maximize(view, maximize);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -704,7 +704,7 @@ handle_map_request(struct wl_listener *listener, void *data)
|
|||
if (xsurface->maximized_vert) {
|
||||
axis |= VIEW_AXIS_VERTICAL;
|
||||
}
|
||||
view_maximize(view, axis, /*store_natural_geometry*/ true);
|
||||
view_maximize(view, axis);
|
||||
/*
|
||||
* We could also call set_initial_position() here, but it's not
|
||||
* really necessary until the view is actually mapped (and at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue