ui/motif/window.c

changeset 62
70d2aee84432
parent 61
7ee124a58fe3
child 106
a4f4123ca12a
--- a/ui/motif/window.c	Thu Jan 01 17:22:55 2015 +0100
+++ b/ui/motif/window.c	Sun Jan 04 22:12:07 2015 +0100
@@ -38,8 +38,8 @@
 
 static int nwindows = 0;
 
-static int window_default_width = 650;
-static int window_default_height = 550;
+static int window_default_width = 600;
+static int window_default_height = 500;
 
 static void window_close_handler(Widget window, void *udata, void *cdata) {
     nwindows--;
@@ -57,8 +57,12 @@
     int n = 0;
     
     XtSetArg(args[0], XmNtitle, title);
-    XtSetArg(args[1], XmNbaseWidth, window_default_width);
-    XtSetArg(args[2], XmNbaseHeight, window_default_height);
+    //XtSetArg(args[1], XmNbaseWidth, window_default_width);
+    //XtSetArg(args[2], XmNbaseHeight, window_default_height);
+    XtSetArg(args[1], XmNminWidth, 100);
+    XtSetArg(args[2], XmNminHeight, 50);
+    XtSetArg(args[3], XmNwidth, window_default_width);
+    XtSetArg(args[4], XmNheight, window_default_height);
     
     Widget toplevel = XtAppCreateShell(
             "Test123",
@@ -67,7 +71,7 @@
             vendorShellWidgetClass,
             ui_get_display(),
             args,
-            3);
+            5);
     
     Atom wm_delete_window;
     wm_delete_window = XmInternAtom(

mercurial