diff options
author | Marek Ch <mchqwerty@gmail.com> | 2013-12-19 16:56:31 +0100 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-09-04 19:34:26 +0300 |
commit | c920a889b71359a576c0d33b8df160b4a980b370 (patch) | |
tree | b1f351eb6da63335bf86b84f17683e287fe90ece /src | |
parent | 9f1c2e5d364a1a11dfb8b05057bc1caa62813943 (diff) | |
download | metacity-c920a889b71359a576c0d33b8df160b4a980b370.tar.gz |
window: fix coerced value
(int) 0.5 = 0, so there always was 0 instead of 50%
Diffstat (limited to 'src')
-rw-r--r-- | src/core/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c index 1e9ab98e..146dde9c 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7286,7 +7286,7 @@ meta_window_titlebar_is_onscreen (MetaWindow *window) gboolean is_onscreen; 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; /* Titlebar can't be offscreen if there is no titlebar... */ |