X11: Disable menucolors when showing text files
This commit is contained in:
@@ -1962,6 +1962,7 @@ boolean complain;
|
||||
wp->title = dupstr(str);
|
||||
|
||||
wp->menu_information->permi = FALSE;
|
||||
wp->menu_information->disable_mcolors = TRUE;
|
||||
(void) X11_select_menu(newwin, PICK_NONE, &menu_list);
|
||||
X11_destroy_nhwindow(newwin);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1162,7 +1162,7 @@ struct menu *curr_menu;
|
||||
XtSetArg(args[num_args], nhStr(XtNborderWidth), 0); num_args++;
|
||||
XtSetArg(args[num_args], nhStr(XtNvertDistance), 0); num_args++;
|
||||
|
||||
if (!iflags.use_menu_color
|
||||
if (!iflags.use_menu_color || wp->menu_information->disable_mcolors
|
||||
|| !get_menu_coloring(curr->str, &color, &attr))
|
||||
attr = curr->attr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user