Fixed a bug with move-resize, removed xdg-shell ack_configure event

Fixed move-resizing a view when only one coordinate changes.
This commit is contained in:
emersion 2017-11-18 09:09:23 +01:00
parent e2843d87c8
commit a3a8b7bfd8
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 31 additions and 18 deletions

View file

@ -103,6 +103,11 @@ void view_resize(struct roots_view *view, uint32_t width, uint32_t height) {
void view_move_resize(struct roots_view *view, double x, double y,
uint32_t width, uint32_t height) {
if (x == view->x == x && y == view->y) {
view_resize(view, width, height);
return;
}
if (view->move_resize) {
view->move_resize(view, x, y, width, height);
return;