diff options
| author | Richard M. Stallman | 1994-06-05 12:43:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-05 12:43:42 +0000 |
| commit | ad0dae07104cd4a8b7cffc0b4712f5d6baa06183 (patch) | |
| tree | 16e53d6d6bd531cb4d4e8b489905802a2bd9a5f6 /src | |
| parent | c5969523667529dd343517d9309ae985a3cc9272 (diff) | |
| download | emacs-ad0dae07104cd4a8b7cffc0b4712f5d6baa06183.tar.gz emacs-ad0dae07104cd4a8b7cffc0b4712f5d6baa06183.zip | |
(x_window): Take account of internal border of paned widget.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 4e3144e5dc4..b3c2731c7d1 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1908,12 +1908,18 @@ x_window (f, window_prompting, minibuffer_only) | |||
| 1908 | char *tem, shell_position[32]; | 1908 | char *tem, shell_position[32]; |
| 1909 | Arg al[2]; | 1909 | Arg al[2]; |
| 1910 | int ac = 0; | 1910 | int ac = 0; |
| 1911 | int ibw; | ||
| 1911 | int menubar_size | 1912 | int menubar_size |
| 1912 | = (f->display.x->menubar_widget | 1913 | = (f->display.x->menubar_widget |
| 1913 | ? (f->display.x->menubar_widget->core.height | 1914 | ? (f->display.x->menubar_widget->core.height |
| 1914 | + f->display.x->menubar_widget->core.border_width) | 1915 | + f->display.x->menubar_widget->core.border_width) |
| 1915 | : 0); | 1916 | : 0); |
| 1916 | 1917 | ||
| 1918 | XtVaGetValues (pane_widget, | ||
| 1919 | XtNinternalBorderWidth, &ibw, | ||
| 1920 | NULL); | ||
| 1921 | menubar_size += ibw; | ||
| 1922 | |||
| 1917 | if (window_prompting & USPosition) | 1923 | if (window_prompting & USPosition) |
| 1918 | { | 1924 | { |
| 1919 | int left = f->display.x->left_pos; | 1925 | int left = f->display.x->left_pos; |