From 0f42017d221aeeda11e44d778031124cd907673b Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 29 May 2023 23:20:50 +0200 Subject: Use functions to set dimension of the CherryWindow --- src/window.c | 4 ++-- 1 file 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; -- cgit v1.2.3