view: use fixed default window width

Now it's not very reasonable to determine the default window width based
on the titlebar geometry, as the titlebar can be shrunk to 1px.

Let's use the fixed value of 100px for simplification.
This commit is contained in:
tokyo4j 2025-09-01 17:29:24 +09:00 committed by Johan Malm
parent 6ed2617394
commit 164b17c279
4 changed files with 9 additions and 20 deletions

View file

@ -11,6 +11,11 @@
#include "config.h"
#include "config/types.h"
/*
* Default minimal window size. Clients can explicitly set smaller values via
* e.g. xdg_toplevel::set_min_size.
*/
#define LAB_MIN_VIEW_WIDTH 100
#define LAB_MIN_VIEW_HEIGHT 60
/*
@ -573,7 +578,6 @@ const char *view_get_string_prop(struct view *view, const char *prop);
void view_update_title(struct view *view);
void view_update_app_id(struct view *view);
void view_reload_ssd(struct view *view);
int view_get_min_width(void);
void view_set_shade(struct view *view, bool shaded);