From 44ee2a9913f97c63a271a8d3cf5bede954aacbf7 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 14 Jun 2011 04:54:28 +0900 Subject: [PATCH] Simplify the last commit. --- src/server-context.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/server-context.c b/src/server-context.c index 99fa0e52..e98c9381 100644 --- a/src/server-context.c +++ b/src/server-context.c @@ -278,7 +278,6 @@ set_geometry (ServerContext *context) if (context->fullscreen) { gint width = rect.width, height = rect.height / 2; - gint x, y; if (width * bounds.height > height * bounds.width) width = (height / bounds.height) * bounds.width; @@ -287,9 +286,9 @@ set_geometry (ServerContext *context) gtk_widget_set_size_request (context->widget, width, height); - x = (rect.width - width) / 2; - y = rect.height - height; - gtk_window_move (GTK_WINDOW(context->window), x, y); + gtk_window_move (GTK_WINDOW(context->window), + (rect.width - width) / 2, + rect.height - height); gtk_window_set_decorated (GTK_WINDOW(context->window), FALSE); gtk_window_set_resizable (GTK_WINDOW(context->window), FALSE);