mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
view: Unify view_move()/view_move_resize()
view->impl->move() is a specific case of view->impl->configure(). To reduce code duplication, we can use view->impl->configure() for pure moves (without resize) as well. xwayland's move() function also possibly contained a race condition when there was a pending resize, as it used the current surface width/height rather than the pending width/height. This is fixed.
This commit is contained in:
parent
859eba1c6b
commit
0ca6c4c763
4 changed files with 16 additions and 54 deletions
|
|
@ -26,7 +26,6 @@ struct view_impl {
|
|||
void (*close)(struct view *view);
|
||||
const char *(*get_string_prop)(struct view *view, const char *prop);
|
||||
void (*map)(struct view *view);
|
||||
void (*move)(struct view *view, int x, int y);
|
||||
void (*set_activated)(struct view *view, bool activated);
|
||||
void (*set_fullscreen)(struct view *view, bool fullscreen);
|
||||
void (*unmap)(struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue