[metacity] window: fix coerced value
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: fix coerced value
- Date: Fri, 4 Sep 2020 16:35:08 +0000 (UTC)
commit c920a889b71359a576c0d33b8df160b4a980b370
Author: Marek Ch <mchqwerty gmail com>
Date: Thu Dec 19 16:56:31 2013 +0100
window: fix coerced value
(int) 0.5 = 0, so there always was 0 instead of 50%
src/core/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]