add menu item for toggling window size adjustment
[uwplayer.git] / application / player.c
index be4d77f..2d63135 100644 (file)
@@ -245,6 +245,7 @@ static int connect_to_ipc(Player *player) {
 static Boolean update_player_window(XtPointer data) {
     MainWindow *win = data;
     WindowUpdate(win);
+    return 0;
 }
 
 static void* start_player(void *data) {
@@ -356,6 +357,10 @@ static void handle_json_rpc_msg(Player *player, JSONValue *v) {
 static Boolean player_widget_set_size(XtPointer data) {
     Player *player = data;
     MainWindow *win = GetMainWindow();
+    
+    if(!win->adjustWindowSize) {
+        return 0;
+    }
         
     Dimension win_width, win_height;
     XtVaGetValues(win->window, XmNwidth, &win_width, XmNheight, &win_height, NULL);