diff options
author | emersion <contact@emersion.fr> | 2017-11-18 09:09:23 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-18 09:09:23 +0100 |
commit | a3a8b7bfd8d1616cdf9f7ba911616ca0baeedc67 (patch) | |
tree | 37c802d9abe65d9ba20dbe0ae839aaff39a960a6 /rootston/desktop.c | |
parent | e2843d87c868341869cf905f6c77531e78d997ad (diff) |
Fixed a bug with move-resize, removed xdg-shell ack_configure event
Fixed move-resizing a view when only one coordinate changes.
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 1695d007..be63d7f5 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -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; |