mirror of
https://github.com/brl/mutter.git
synced 2025-07-09 04:08:12 +00:00
window: fix coerced value
(int) 0.5 = 0, so there always was 0 instead of 50%
This commit is contained in:
@ -7885,7 +7885,7 @@ meta_window_titlebar_is_onscreen (MetaWindow *window)
|
|||||||
gboolean is_onscreen;
|
gboolean is_onscreen;
|
||||||
|
|
||||||
const int min_height_needed = 8;
|
const int min_height_needed = 8;
|
||||||
const int min_width_percent = 0.5;
|
const float min_width_percent = 0.5;
|
||||||
const int min_width_absolute = 50;
|
const int min_width_absolute = 50;
|
||||||
|
|
||||||
/* Titlebar can't be offscreen if there is no titlebar... */
|
/* Titlebar can't be offscreen if there is no titlebar... */
|
||||||
|
Reference in New Issue
Block a user