diff options
| author | Fred Pierresteguy | 1994-03-31 16:49:00 +0000 |
|---|---|---|
| committer | Fred Pierresteguy | 1994-03-31 16:49:00 +0000 |
| commit | 80eb0a994f6a81e408a1e8ebc8011bfb142580e5 (patch) | |
| tree | 30798dc9c047ea32578b28752d4d1806f6c75ca9 /src | |
| parent | 2cf5fc7e0f03591e5fcae8d28ab037b599c80ad2 (diff) | |
| download | emacs-80eb0a994f6a81e408a1e8ebc8011bfb142580e5.tar.gz emacs-80eb0a994f6a81e408a1e8ebc8011bfb142580e5.zip | |
(x_window) [USE_X_TOOLKIT]: When doing geometry management, don't compute the
size of the menubar if there is no menubar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xfns.c b/src/xfns.c index 5eaf11447cc..45dce7661e7 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1776,17 +1776,20 @@ x_window (f) | |||
| 1776 | char *tem, shell_position[32]; | 1776 | char *tem, shell_position[32]; |
| 1777 | Arg al[2]; | 1777 | Arg al[2]; |
| 1778 | int ac = 0; | 1778 | int ac = 0; |
| 1779 | int menubar_size = | ||
| 1780 | (f->display.x->menubar_widget | ||
| 1781 | ? (f->display.x->menubar_widget->core.height | ||
| 1782 | + f->display.x->menubar_widget->core.border_width) | ||
| 1783 | : 0); | ||
| 1779 | 1784 | ||
| 1780 | if (window_prompting & USPosition) | 1785 | if (window_prompting & USPosition) |
| 1781 | sprintf (shell_position, "=%dx%d%c%d%c%d", PIXEL_WIDTH (f), | 1786 | sprintf (shell_position, "=%dx%d%c%d%c%d", PIXEL_WIDTH (f), |
| 1782 | PIXEL_HEIGHT (f) + f->display.x->menubar_widget->core.height | 1787 | PIXEL_HEIGHT (f) + menubar_size, |
| 1783 | + f->display.x->menubar_widget->core.border_width, | ||
| 1784 | '+', f->display.x->left_pos, | 1788 | '+', f->display.x->left_pos, |
| 1785 | '+', f->display.x->top_pos); | 1789 | '+', f->display.x->top_pos); |
| 1786 | else | 1790 | else |
| 1787 | sprintf (shell_position, "=%dx%d", PIXEL_WIDTH (f), | 1791 | sprintf (shell_position, "=%dx%d", PIXEL_WIDTH (f), |
| 1788 | PIXEL_HEIGHT (f) + f->display.x->menubar_widget->core.height | 1792 | PIXEL_HEIGHT (f) + menubar_size); |
| 1789 | + f->display.x->menubar_widget->core.border_width); | ||
| 1790 | len = strlen (shell_position) + 1; | 1793 | len = strlen (shell_position) + 1; |
| 1791 | tem = (char *) xmalloc (len); | 1794 | tem = (char *) xmalloc (len); |
| 1792 | strncpy (tem, shell_position, len); | 1795 | strncpy (tem, shell_position, len); |