diff options
author | 2023-05-29 23:20:50 +0200 | |
---|---|---|
committer | 2023-05-29 23:20:50 +0200 | |
commit | 0f42017d221aeeda11e44d778031124cd907673b (patch) | |
tree | 412ceb3e17d2fb8114de15b082abcec5f54eff4a /src | |
parent | 76ec9e7be4286a942975d07cbe84ea43a30e7b28 (diff) | |
download | cherry-0f42017d221aeeda11e44d778031124cd907673b.tar.gz cherry-0f42017d221aeeda11e44d778031124cd907673b.zip |
Use functions to set dimension of the CherryWindow
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 4 |
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; |