aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widget.c b/src/widget.c
index 30f4e9e3d6f..09fc0f3ecbe 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -438,11 +438,15 @@ set_frame_size (ew)
438 { 438 {
439 int len; 439 int len;
440 char *tem; 440 char *tem;
441 Arg al[2];
442 int ac = 0;
443
441 sprintf (shell_position, "=%dx%d", pixel_width, pixel_height); 444 sprintf (shell_position, "=%dx%d", pixel_width, pixel_height);
442 len = strlen (shell_position) + 1; 445 len = strlen (shell_position) + 1;
443 tem = (char *) xmalloc (len); 446 tem = (char *) xmalloc (len);
444 strncpy (tem, shell_position, len); 447 strncpy (tem, shell_position, len);
445 XtVaSetValues (wmshell, XtNgeometry, tem, 0); 448 XtSetArg (al[ac], XtNgeometry, tem); ac++;
449 XtSetValues (wmshell, al, ac);
446 } 450 }
447 451
448#if 0 /* We don't need this also. */ 452#if 0 /* We don't need this also. */