mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
ssd: apply title layout
This commit is contained in:
parent
9a252249c9
commit
39ff873d5b
7 changed files with 140 additions and 78 deletions
|
|
@ -622,7 +622,8 @@ check_natural_geometry(struct view *view)
|
|||
* un-maximized size when started maximized. Try to detect this
|
||||
* and set a fallback size.
|
||||
*/
|
||||
int min_view_width = rc.theme->window_button_width * SSD_BUTTON_COUNT;
|
||||
int min_view_width = rc.theme->window_button_width * (
|
||||
wl_list_length(&rc.title_buttons_left) + wl_list_length(&rc.title_buttons_right));
|
||||
if (!view_is_floating(view)
|
||||
&& (view->natural_geometry.width < min_view_width
|
||||
|| view->natural_geometry.height < LAB_MIN_VIEW_HEIGHT)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue