This commit is contained in:
2026-01-08 22:44:24 +07:00
parent b5d5793aa8
commit 5173134d51
7 changed files with 66 additions and 34 deletions
+2 -5
View File
@@ -32,14 +32,11 @@ void absinthe_toplevel_set_position(struct absinthe_toplevel *toplevel, int32_t
void absinthe_toplevel_set_size(struct absinthe_toplevel *toplevel, int32_t width, int32_t height)
{
int bw = ABSINTHE_BORDER_WIDTH;
int bw = ABSINTHE_WINDOW_BORDER_WIDTH;
if (width < 0 || height < 0)
return;
toplevel->geometry.width = width;
toplevel->geometry.height = height;
wlr_xdg_toplevel_set_size(toplevel->xdg_toplevel, width, height);
wlr_xdg_surface_schedule_configure(toplevel->xdg_toplevel->base);
}
@@ -53,7 +50,7 @@ void absinthe_toplevel_set_border_color(struct absinthe_toplevel *toplevel, cons
void absinthe_toplevel_update_borders_geometry(struct absinthe_toplevel *toplevel)
{
int bw = ABSINTHE_BORDER_WIDTH;
int bw = ABSINTHE_WINDOW_BORDER_WIDTH;
if (toplevel->geometry.width - 2 * bw < 0 || toplevel->geometry.height - 2 * bw < 0)
return;