From d144c53395caf0323ada06064553c7c65a33e9dc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Mar 2008 13:01:00 +0100 Subject: [PATCH] Add simplewindow_move_resize() function --- common/swindow.c | 7 +++++++ common/swindow.h | 1 + 2 files changed, 8 insertions(+) diff --git a/common/swindow.c b/common/swindow.c index fde9c7358..61fe9300a 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 679c66d40..8ed6564bc 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