diff options
| author | Alexander Gramiak | 2019-04-13 20:41:31 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-04-26 16:55:39 -0600 |
| commit | 5d8b0fadeec373cd2861328aeb1cb4293cbc9ded (patch) | |
| tree | c1db5270ae236a1437660b486e6c74fbee4733ff /src/w32term.c | |
| parent | 41e20ee4bc01576d23fb8fd4f875385ce57eb36a (diff) | |
| download | emacs-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/w32term.c')
| -rw-r--r-- | src/w32term.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index 9d050984f78..65c1baf20f6 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1608,6 +1608,14 @@ w32_query_colors (struct frame *f, XColor *colors, int ncolors) | |||
| 1608 | } | 1608 | } |
| 1609 | } | 1609 | } |
| 1610 | 1610 | ||
| 1611 | /* Store F's background color into *BGCOLOR. */ | ||
| 1612 | |||
| 1613 | static void | ||
| 1614 | w32_query_frame_background_color (struct frame *f, XColor *bgcolor) | ||
| 1615 | { | ||
| 1616 | bgcolor->pixel = FRAME_BACKGROUND_PIXEL (f); | ||
| 1617 | w32_query_colors (f, bgcolor, 1); | ||
| 1618 | } | ||
| 1611 | 1619 | ||
| 1612 | /* Set up the foreground color for drawing relief lines of glyph | 1620 | /* Set up the foreground color for drawing relief lines of glyph |
| 1613 | string S. RELIEF is a pointer to a struct relief containing the GC | 1621 | string S. RELIEF is a pointer to a struct relief containing the GC |
| @@ -7160,6 +7168,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo) | |||
| 7160 | terminal->read_socket_hook = w32_read_socket; | 7168 | terminal->read_socket_hook = w32_read_socket; |
| 7161 | terminal->frame_up_to_date_hook = w32_frame_up_to_date; | 7169 | terminal->frame_up_to_date_hook = w32_frame_up_to_date; |
| 7162 | terminal->defined_color_hook = w32_defined_color; | 7170 | terminal->defined_color_hook = w32_defined_color; |
| 7171 | terminal->query_frame_background_color = w32_query_frame_background_color; | ||
| 7163 | terminal->query_colors = w32_query_colors; | 7172 | terminal->query_colors = w32_query_colors; |
| 7164 | terminal->mouse_position_hook = w32_mouse_position; | 7173 | terminal->mouse_position_hook = w32_mouse_position; |
| 7165 | terminal->get_focus_frame = w32_get_focus_frame; | 7174 | terminal->get_focus_frame = w32_get_focus_frame; |