aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-05-24 04:42:09 +0000
committerKarl Heuer1995-05-24 04:42:09 +0000
commit00983aba269065250fa386eba7f25b2472ffc1bc (patch)
tree4aaf76da4d5b49db2e7362066d5965af0c8bf814 /src
parentc81412a05fecc1adc9994cb908dd3da1cea07e9b (diff)
downloademacs-00983aba269065250fa386eba7f25b2472ffc1bc.tar.gz
emacs-00983aba269065250fa386eba7f25b2472ffc1bc.zip
(x_window) [both versions]: Set menubar_height.
[USE_X_TOOLKIT] (x_window): Don't call XMoveWindow or x_calc_absolute_position. Do use the border_width.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 906ff3d664f..df82d9ab2f6 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2371,6 +2371,7 @@ x_window (f, window_prompting, minibuffer_only)
2371 XtSetArg (al[ac], XtNallowShellResize, 1); ac++; 2371 XtSetArg (al[ac], XtNallowShellResize, 1); ac++;
2372 XtSetArg (al[ac], XtNinput, 1); ac++; 2372 XtSetArg (al[ac], XtNinput, 1); ac++;
2373 XtSetArg (al[ac], XtNmappedWhenManaged, 0); ac++; 2373 XtSetArg (al[ac], XtNmappedWhenManaged, 0); ac++;
2374 XtSetArg (al[ac], XtNborderWidth, f->display.x->border_width); ac++;
2374 shell_widget = XtAppCreateShell (f->namebuf, EMACS_CLASS, 2375 shell_widget = XtAppCreateShell (f->namebuf, EMACS_CLASS,
2375 topLevelShellWidgetClass, 2376 topLevelShellWidgetClass,
2376 FRAME_X_DISPLAY (f), al, ac); 2377 FRAME_X_DISPLAY (f), al, ac);
@@ -2429,6 +2430,8 @@ x_window (f, window_prompting, minibuffer_only)
2429 menubar_size += ibw; 2430 menubar_size += ibw;
2430 } 2431 }
2431 2432
2433 f->display.x->menubar_height = menubar_size;
2434
2432 /* Convert our geometry parameters into a geometry string 2435 /* Convert our geometry parameters into a geometry string
2433 and specify it. 2436 and specify it.
2434 Note that we do not specify here whether the position 2437 Note that we do not specify here whether the position
@@ -2461,8 +2464,6 @@ x_window (f, window_prompting, minibuffer_only)
2461 XtSetValues (shell_widget, al, ac); 2464 XtSetValues (shell_widget, al, ac);
2462 } 2465 }
2463 2466
2464 x_calc_absolute_position (f);
2465
2466 XtManageChild (pane_widget); 2467 XtManageChild (pane_widget);
2467 XtRealizeWidget (shell_widget); 2468 XtRealizeWidget (shell_widget);
2468 2469
@@ -2518,12 +2519,6 @@ x_window (f, window_prompting, minibuffer_only)
2518 XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 2519 XDefineCursor (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
2519 f->display.x->text_cursor); 2520 f->display.x->text_cursor);
2520 2521
2521 /* If we have a program-specified position, communicate it to
2522 the window manager thus. */
2523 if (FRAME_X_WINDOW (f))
2524 XMoveWindow (FRAME_X_DISPLAY (f), XtWindow (f->display.x->widget),
2525 f->display.x->left_pos, f->display.x->top_pos);
2526
2527 UNBLOCK_INPUT; 2522 UNBLOCK_INPUT;
2528 2523
2529 if (FRAME_X_WINDOW (f) == 0) 2524 if (FRAME_X_WINDOW (f) == 0)
@@ -2572,6 +2567,10 @@ x_window (f)
2572 class_hints.res_class = EMACS_CLASS; 2567 class_hints.res_class = EMACS_CLASS;
2573 XSetClassHint (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &class_hints); 2568 XSetClassHint (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &class_hints);
2574 2569
2570 /* The menubar is part of the ordinary display;
2571 it does not count in addition to the height of the window. */
2572 f->display.x->menubar_height = 0;
2573
2575 /* This indicates that we use the "Passive Input" input model. 2574 /* This indicates that we use the "Passive Input" input model.
2576 Unless we do this, we don't get the Focus{In,Out} events that we 2575 Unless we do this, we don't get the Focus{In,Out} events that we
2577 need to draw the cursor correctly. Accursed bureaucrats. 2576 need to draw the cursor correctly. Accursed bureaucrats.