aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-01-15 07:50:22 -0800
committerGlenn Morris2020-01-15 07:50:22 -0800
commitd672ad60e34b4e1dcb28f91d15f1e286acf2f94f (patch)
tree5d17911717db0469bed838cbda7c0adf9638e31b /src
parente31287e704a539ebef777d92e4d06d4b1d912b2a (diff)
parent0e936f18f8738fbe3809784f5ec6feb27c6bb24e (diff)
downloademacs-d672ad60e34b4e1dcb28f91d15f1e286acf2f94f.tar.gz
emacs-d672ad60e34b4e1dcb28f91d15f1e286acf2f94f.zip
Merge from origin/emacs-27
0e936f18f8 (origin/emacs-27) Fix build failure with --with-cairo --wi... c34f7e884b Add new node "Package Statuses" to manual fdee034ac8 * lisp/isearch.el: Fix corner cases of isearch-lazy-count. 7b14329d86 ; * lisp/simple.el (messages-buffer): Doc fix. (Bug#39124) 7ec66a59e3 Document spacing issues with Xft for some fonts 08cd247fbd ; * etc/NEWS: Fix typo. d645628e3c Always use lexical-binding in lisp-interaction-mode (bug#3... c42198f78c ; *etc/NEWS: Fix typo. 0ed9cfa7dc vc-dir: ensure we don't use a pager with git 37e0d00c14 Improve ERC's matching of nicks and URLs (bug#38257) d47b157969 Handle tab-bar clicks on a GPM-capable console. e4791f3f8e ;* etc/TODO: Update. # Conflicts: # etc/NEWS
Diffstat (limited to 'src')
-rw-r--r--src/image.c8
-rw-r--r--src/term.c8
-rw-r--r--src/xdisp.c4
3 files changed, 16 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index d3fec37186c..65d59254f02 100644
--- a/src/image.c
+++ b/src/image.c
@@ -6235,7 +6235,7 @@ pbm_load (struct frame *f, struct image *img)
6235 PNG 6235 PNG
6236 ***********************************************************************/ 6236 ***********************************************************************/
6237 6237
6238#if defined (HAVE_PNG) || defined (HAVE_NS) || defined (USE_CAIRO) 6238#if defined (HAVE_PNG) || defined (HAVE_NS)
6239 6239
6240/* Indices of image specification fields in png_format, below. */ 6240/* Indices of image specification fields in png_format, below. */
6241 6241
@@ -6286,10 +6286,10 @@ png_image_p (Lisp_Object object)
6286 return fmt[PNG_FILE].count + fmt[PNG_DATA].count == 1; 6286 return fmt[PNG_FILE].count + fmt[PNG_DATA].count == 1;
6287} 6287}
6288 6288
6289#endif /* HAVE_PNG || HAVE_NS || USE_CAIRO */ 6289#endif /* HAVE_PNG || HAVE_NS */
6290 6290
6291 6291
6292#if (defined HAVE_PNG && !defined HAVE_NS) || defined USE_CAIRO 6292#if defined HAVE_PNG && !defined HAVE_NS
6293 6293
6294# ifdef WINDOWSNT 6294# ifdef WINDOWSNT
6295/* PNG library details. */ 6295/* PNG library details. */
@@ -10164,7 +10164,7 @@ static struct image_type const image_types[] =
10164 { SYMBOL_INDEX (Qsvg), svg_image_p, svg_load, image_clear_image, 10164 { SYMBOL_INDEX (Qsvg), svg_image_p, svg_load, image_clear_image,
10165 IMAGE_TYPE_INIT (init_svg_functions) }, 10165 IMAGE_TYPE_INIT (init_svg_functions) },
10166#endif 10166#endif
10167#if defined HAVE_PNG || defined HAVE_NS || defined USE_CAIRO 10167#if defined HAVE_PNG || defined HAVE_NS
10168 { SYMBOL_INDEX (Qpng), png_image_p, png_load, image_clear_image, 10168 { SYMBOL_INDEX (Qpng), png_image_p, png_load, image_clear_image,
10169 IMAGE_TYPE_INIT (init_png_functions) }, 10169 IMAGE_TYPE_INIT (init_png_functions) },
10170#endif 10170#endif
diff --git a/src/term.c b/src/term.c
index 871734318c0..a3aef31ec25 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2568,6 +2568,14 @@ handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event,
2568 else { 2568 else {
2569 f->mouse_moved = 0; 2569 f->mouse_moved = 0;
2570 term_mouse_click (&ie, event, f); 2570 term_mouse_click (&ie, event, f);
2571 if (tty_handle_tab_bar_click (f, event->x, event->y,
2572 (ie.modifiers & down_modifier) != 0, &ie))
2573 {
2574 /* tty_handle_tab_bar_click stores 2 events in the event
2575 queue, so we are done here. */
2576 count += 2;
2577 return count;
2578 }
2571 } 2579 }
2572 2580
2573 done: 2581 done:
diff --git a/src/xdisp.c b/src/xdisp.c
index 53300928d7b..516013ce4ba 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13516,6 +13516,10 @@ tty_handle_tab_bar_click (struct frame *f, int x, int y, bool down_p,
13516 f->last_tab_bar_item = prop_idx; 13516 f->last_tab_bar_item = prop_idx;
13517 else 13517 else
13518 { 13518 {
13519 /* Force reset of up_modifier bit from the event modifiers. */
13520 if (event->modifiers & up_modifier)
13521 event->modifiers &= ~up_modifier;
13522
13519 /* Generate a TAB_BAR_EVENT event. */ 13523 /* Generate a TAB_BAR_EVENT event. */
13520 Lisp_Object frame; 13524 Lisp_Object frame;
13521 Lisp_Object key = AREF (f->tab_bar_items, 13525 Lisp_Object key = AREF (f->tab_bar_items,