Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix :resizable=>false behavior on Linux. Closes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
ychatz committed Apr 24, 2012
1 parent 911fe9e commit 4e7982d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shoes/native/gtk.c
Expand Up @@ -553,16 +553,16 @@ shoes_native_app_open(shoes_app *app, char *path, int dialog)
gtk_window_set_default_icon_from_file(icon_path, NULL);
gk->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_position(GTK_WINDOW(gk->window), GTK_WIN_POS_CENTER);
if (app->minwidth < app->width || app->minheight < app->height)
if (!app->resizable)
gtk_window_set_resizable(GTK_WINDOW(gk->window), FALSE);
else if (app->minwidth < app->width || app->minheight < app->height)
{
GdkGeometry hints;
hints.min_width = app->minwidth;
hints.min_height = app->minheight;
gtk_window_set_geometry_hints(GTK_WINDOW(gk->window), NULL,
&hints, GDK_HINT_MIN_SIZE);
}
if (!app->resizable)
gtk_window_set_resizable(GTK_WINDOW(gk->window), FALSE);
if (app->fullscreen)
shoes_native_app_fullscreen(app, 1);
gtk_widget_set_events(gk->window, GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
Expand Down

0 comments on commit 4e7982d

Please sign in to comment.