aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 23:20:50 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 23:20:50 +0200
commit0f42017d221aeeda11e44d778031124cd907673b (patch)
tree412ceb3e17d2fb8114de15b082abcec5f54eff4a
parent76ec9e7be4286a942975d07cbe84ea43a30e7b28 (diff)
downloadcherry-0f42017d221aeeda11e44d778031124cd907673b.tar.gz
cherry-0f42017d221aeeda11e44d778031124cd907673b.zip
Use functions to set dimension of the CherryWindow
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index a187d7c..c50850e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -26,8 +26,8 @@ cherry_window_new(void)
XSizeHints hints;
hints.x = w->x + offset;
hints.y = w->y + offset;
- hints.width = w->dimension->width + offset;
- hints.height = w->dimension->height + offset;
+ cherry_window_get_position(window, &hints.x, &hints.y);
+ cherry_window_get_dimension(window, &hints.width, &hints.height);
hints.flags = PPosition|PSize;
XSetWindowAttributes attributes;