[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc c32ea49de92: * src/frame.h (MOUSE_HL_INFO): Retzrn NULL if o
From: |
Gerd Moellmann |
Subject: |
scratch/igc c32ea49de92: * src/frame.h (MOUSE_HL_INFO): Retzrn NULL if output data is NULL. |
Date: |
Thu, 5 Sep 2024 13:12:16 -0400 (EDT) |
branch: scratch/igc
commit c32ea49de92b4231f37bbc6d38055539d86efcef
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
* src/frame.h (MOUSE_HL_INFO): Retzrn NULL if output data is NULL.
---
src/frame.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/frame.h b/src/frame.h
index 3abf08f6292..473d90af353 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1021,9 +1021,11 @@ default_pixels_per_inch_y (void)
does not have FRAME_DISPLAY_INFO. */
#ifdef HAVE_WINDOW_SYSTEM
#ifndef HAVE_ANDROID
-# define MOUSE_HL_INFO(F) \
+# define MOUSE_HL_INFO(F) \
(FRAME_WINDOW_P (F) \
- ? &FRAME_DISPLAY_INFO(F)->mouse_highlight \
+ ? (FRAME_OUTPUT_DATA (F) \
+ ? &FRAME_DISPLAY_INFO (F)->mouse_highlight \
+ : NULL) \
: &(F)->output_data.tty->display_info->mouse_highlight)
#else
/* There is no "struct tty_output" on Android at all. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scratch/igc c32ea49de92: * src/frame.h (MOUSE_HL_INFO): Retzrn NULL if output data is NULL.,
Gerd Moellmann <=