diff options
author | Alexander Gramiak <agrambot@gmail.com> | 2019-04-13 20:41:31 -0600 |
---|---|---|
committer | Alexander Gramiak <agrambot@gmail.com> | 2019-04-26 16:55:39 -0600 |
commit | 5d8b0fadeec373cd2861328aeb1cb4293cbc9ded (patch) | |
tree | c1db5270ae236a1437660b486e6c74fbee4733ff /src/termhooks.h | |
parent | 41e20ee4bc01576d23fb8fd4f875385ce57eb36a (diff) | |
download | emacs-5d8b0fadeec373cd2861328aeb1cb4293cbc9ded.tar.gz |
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.h | 4 |
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 */ + /* This hook is called to store the frame's background color into + BGCOLOR. */ + void (*query_frame_background_color) (struct frame *f, XColor *bgcolor); + #if defined (HAVE_X_WINDOWS) || defined (HAVE_NTGUI) /* On frame F, translate pixel colors to RGB values for the NCOLORS colors in COLORS. Use cached information, if available. */ |