aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2003-11-09 16:26:48 +0000
committerJan Djärv2003-11-09 16:26:48 +0000
commit7430518301902e7a78adff11c9e28c369383f997 (patch)
treedc14bce7239bd355bfe779c617f400a2ff35e3ed /src
parentbf4fb0252c68afbd375e787bd726c35afd96640b (diff)
downloademacs-7430518301902e7a78adff11c9e28c369383f997.tar.gz
emacs-7430518301902e7a78adff11c9e28c369383f997.zip
* xfns.c (x_window): Set XtNx and XtNy in shell widget for
program specified positions.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c18
2 files changed, 19 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e2d1a9b42de..d9307fa6675 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12003-11-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4 program specified positions.
5
12003-11-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62003-11-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E. 8 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
diff --git a/src/xfns.c b/src/xfns.c
index b188ee3a43d..e4742b1d36d 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2670,7 +2670,7 @@ x_window (f, window_prompting, minibuffer_only)
2670 { 2670 {
2671 int len; 2671 int len;
2672 char *tem, shell_position[32]; 2672 char *tem, shell_position[32];
2673 Arg al[2]; 2673 Arg al[10];
2674 int ac = 0; 2674 int ac = 0;
2675 int extra_borders = 0; 2675 int extra_borders = 0;
2676 int menubar_size 2676 int menubar_size
@@ -2722,9 +2722,19 @@ x_window (f, window_prompting, minibuffer_only)
2722 (xneg ? '-' : '+'), left, 2722 (xneg ? '-' : '+'), left,
2723 (yneg ? '-' : '+'), top); 2723 (yneg ? '-' : '+'), top);
2724 else 2724 else
2725 sprintf (shell_position, "=%dx%d", 2725 {
2726 FRAME_PIXEL_WIDTH (f) + extra_borders, 2726 sprintf (shell_position, "=%dx%d",
2727 FRAME_PIXEL_HEIGHT (f) + menubar_size + extra_borders); 2727 FRAME_PIXEL_WIDTH (f) + extra_borders,
2728 FRAME_PIXEL_HEIGHT (f) + menubar_size + extra_borders);
2729
2730 /* Setting x and y when the position is not specified in
2731 the geometry string will set program position in the WM hints.
2732 If Emacs had just one program position, we could set it in
2733 fallback resources, but since each make-frame call can specify
2734 different program positions, this is easier. */
2735 XtSetArg (al[ac], XtNx, left); ac++;
2736 XtSetArg (al[ac], XtNy, top); ac++;
2737 }
2728 } 2738 }
2729 2739
2730 len = strlen (shell_position) + 1; 2740 len = strlen (shell_position) + 1;