mirror of
https://github.com/labwc/labwc.git
synced 2026-02-20 01:40:22 -05:00
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:
parent
6ed2617394
commit
164b17c279
4 changed files with 9 additions and 20 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue