aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorAlexander Gramiak2019-04-13 20:41:31 -0600
committerAlexander Gramiak2019-04-26 16:55:39 -0600
commit5d8b0fadeec373cd2861328aeb1cb4293cbc9ded (patch)
treec1db5270ae236a1437660b486e6c74fbee4733ff /src/termhooks.h
parent41e20ee4bc01576d23fb8fd4f875385ce57eb36a (diff)
downloademacs-5d8b0fadeec373cd2861328aeb1cb4293cbc9ded.tar.gz
emacs-5d8b0fadeec373cd2861328aeb1cb4293cbc9ded.zip
Add terminal hook query_frame_background_color
* src/termhooks.c (query_frame_background_color): New terminal hook. * src/image.c (image_query_frame_background_color): Remove. Use the terminal hook instead. * src/nsterm.m: * src/w32term.c: * src/xterm.c: Implement and set the new terminal hook.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index fbc37261330..54f09e03033 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -513,6 +513,10 @@ struct terminal
513 513
514 */ 514 */
515 515
516 /* This hook is called to store the frame's background color into
517 BGCOLOR. */
518 void (*query_frame_background_color) (struct frame *f, XColor *bgcolor);
519
516#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI) 520#if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI)
517 /* On frame F, translate pixel colors to RGB values for the NCOLORS 521 /* On frame F, translate pixel colors to RGB values for the NCOLORS
518 colors in COLORS. Use cached information, if available. */ 522 colors in COLORS. Use cached information, if available. */