From b8a8aff357001873727bff2c286c7f95cd02071b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20Br=C3=BCschweiler?= Date: Tue, 14 Aug 2012 12:26:54 +0200 Subject: [PATCH] toytoolkit: remove unused actions from titlebar menu They were introduced in b3cca0a41130ff45b70b730cb8f2273dd91531a5 but never actually implemented. Removing them should at least stop users from wondering if weston is broken. https://bugs.freedesktop.org/show_bug.cgi?id=52455 --- clients/window.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/clients/window.c b/clients/window.c index dd65328..0bd362f 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1579,9 +1579,6 @@ frame_menu_func(struct window *window, int index, void *data) if (window->fullscreen_handler) window->fullscreen_handler(window, window->user_data); break; - case 2: /* rotate */ - case 3: /* scale */ - break; } } @@ -1592,12 +1589,13 @@ window_show_frame_menu(struct window *window, int32_t x, y; static const char *entries[] = { - "Close", "Fullscreen", "Rotate", "Scale" + "Close", "Fullscreen" }; input_get_position(input, &x, &y); window_show_menu(window->display, input, time, window, - x - 10, y - 10, frame_menu_func, entries, 4); + x - 10, y - 10, frame_menu_func, entries, + ARRAY_LENGTH(entries)); } static int -- 2.7.4