Fix fullscreen code.

This commit is contained in:
Daiki Ueno
2011-03-08 11:03:48 +09:00
parent af365024b7
commit fa030ebcbb

View File

@ -214,6 +214,7 @@ set_geometry (ServerContext *context)
if (context->fullscreen) {
gtk_window_set_decorated (GTK_WINDOW(context->window), FALSE);
gtk_window_set_resizable (GTK_WINDOW(context->window), FALSE);
gtk_widget_set_size_request (context->widget,
rect.width,
rect.height / 2);
@ -632,6 +633,7 @@ handle_method_call (GDBusConnection *connection,
return;
}
context->fullscreen = fullscreen;
if (context->window)
set_geometry (context);
g_dbus_method_invocation_return_value (invocation, NULL);