diff --git a/common/swindow.c b/common/swindow.c index fde9c735..61fe9300 100644 --- a/common/swindow.c +++ b/common/swindow.c @@ -110,6 +110,13 @@ simplewindow_resize(SimpleWindow *sw, unsigned int w, unsigned int h) return XResizeWindow(sw->display, sw->window, w, h); } +int simplewindow_move_resize(SimpleWindow *sw, int x, int y, + unsigned int w, unsigned int h) +{ + return (simplewindow_move(sw, x, y) + && simplewindow_resize(sw, w, h)); +} + /** Refresh the window content * \param sw the SimpleWindow to refresh * \param phys_screen physical screen id diff --git a/common/swindow.h b/common/swindow.h index 679c66d4..8ed6564b 100644 --- a/common/swindow.h +++ b/common/swindow.h @@ -38,6 +38,7 @@ void simplewindow_delete(SimpleWindow *); int simplewindow_move(SimpleWindow *, int, int); int simplewindow_resize(SimpleWindow *, unsigned int, unsigned int); int simplewindow_refresh_drawable(SimpleWindow *, int); +int simplewindow_move_resize(SimpleWindow *, int, int, unsigned int, unsigned int); #endif // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80