diff options
author | 2023-05-17 12:19:04 +0200 | |
---|---|---|
committer | 2023-05-17 12:19:04 +0200 | |
commit | 02ebb73b60049ccd16bea383e7073403b9f35d6a (patch) | |
tree | ede35879d1fb7874bc8192873fc8cdd3d94f69cc /src/window.c | |
parent | 4eb64fd54cea3d3d91020d4fb88bc48e8a703a85 (diff) | |
download | cherry-02ebb73b60049ccd16bea383e7073403b9f35d6a.tar.gz cherry-02ebb73b60049ccd16bea383e7073403b9f35d6a.zip |
Add logic to resize and move the CherryWindow
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index fb0ae90..b7cbe14 100644 --- a/src/window.c +++ b/src/window.c @@ -79,6 +79,11 @@ cherry_window_set_dimension(CherryWindow *w, int width, int height) { w->dimension->width = width; w->dimension->height = height; + + CherryApplication *app = cherry_application_get_running_app(); + XMoveResizeWindow(app->display, w->window_handler, + w->x, w->y, + w->dimension->width, w->dimension->height); } void @@ -86,6 +91,11 @@ cherry_window_set_position(CherryWindow *w, int x, int y) { w->x = x; w->y = y; + + CherryApplication *app = cherry_application_get_running_app(); + XMoveResizeWindow(app->display, w->window_handler, + w->x, w->y, + w->dimension->width, w->dimension->height); } void |