Simplify the last commit.
This commit is contained in:
@ -278,7 +278,6 @@ set_geometry (ServerContext *context)
|
|||||||
|
|
||||||
if (context->fullscreen) {
|
if (context->fullscreen) {
|
||||||
gint width = rect.width, height = rect.height / 2;
|
gint width = rect.width, height = rect.height / 2;
|
||||||
gint x, y;
|
|
||||||
|
|
||||||
if (width * bounds.height > height * bounds.width)
|
if (width * bounds.height > height * bounds.width)
|
||||||
width = (height / bounds.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);
|
gtk_widget_set_size_request (context->widget, width, height);
|
||||||
|
|
||||||
x = (rect.width - width) / 2;
|
gtk_window_move (GTK_WINDOW(context->window),
|
||||||
y = rect.height - height;
|
(rect.width - width) / 2,
|
||||||
gtk_window_move (GTK_WINDOW(context->window), x, y);
|
rect.height - height);
|
||||||
|
|
||||||
gtk_window_set_decorated (GTK_WINDOW(context->window), FALSE);
|
gtk_window_set_decorated (GTK_WINDOW(context->window), FALSE);
|
||||||
gtk_window_set_resizable (GTK_WINDOW(context->window), FALSE);
|
gtk_window_set_resizable (GTK_WINDOW(context->window), FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user