Enable dividers in NS (bug#22973)
src/nsfns.m: Add colour settings functions to ns_frame_park_handlers. src/nsterm.m (ns_draw_window_divider): ns_focus has to go before the attempt to set the colour. src/nsterm.m (ns_draw_vertical_window_border): This had the same bug as above, although I didn't see any errors.
This commit is contained in:
parent
1f55925728
commit
cfb3c61f1f
2 changed files with 8 additions and 6 deletions
|
@ -983,8 +983,8 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side
|
|||
x_set_icon_name,
|
||||
x_set_icon_type,
|
||||
x_set_internal_border_width, /* generic OK */
|
||||
0, /* x_set_right_divider_width */
|
||||
0, /* x_set_bottom_divider_width */
|
||||
x_set_right_divider_width,
|
||||
x_set_bottom_divider_width,
|
||||
x_set_menu_bar_lines,
|
||||
x_set_mouse_color,
|
||||
x_explicitly_set_name,
|
||||
|
|
10
src/nsterm.m
10
src/nsterm.m
|
@ -2955,10 +2955,11 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
|
|||
NSTRACE ("ns_draw_vertical_window_border");
|
||||
|
||||
face = FACE_OPT_FROM_ID (f, VERTICAL_BORDER_FACE_ID);
|
||||
if (face)
|
||||
[ns_lookup_indexed_color(face->foreground, f) set];
|
||||
|
||||
ns_focus (f, &r, 1);
|
||||
if (face)
|
||||
[ns_lookup_indexed_color(face->foreground, f) set];
|
||||
|
||||
NSRectFill(r);
|
||||
ns_unfocus (f);
|
||||
}
|
||||
|
@ -2977,10 +2978,11 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
|
|||
NSTRACE ("ns_draw_window_divider");
|
||||
|
||||
face = FACE_OPT_FROM_ID (f, WINDOW_DIVIDER_FACE_ID);
|
||||
if (face)
|
||||
[ns_lookup_indexed_color(face->foreground, f) set];
|
||||
|
||||
ns_focus (f, &r, 1);
|
||||
if (face)
|
||||
[ns_lookup_indexed_color(face->foreground, f) set];
|
||||
|
||||
NSRectFill(r);
|
||||
ns_unfocus (f);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue