diff options
author | Po Lu <luangruo@yahoo.com> | 2022-12-26 15:57:06 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-12-26 15:57:48 +0800 |
commit | cc29fab3a66c59e77d0ff67c0f3e2e34ec80a03c (patch) | |
tree | 07d54371ad2a25bd0f01b0cfbfeffefb574f87cc /src/xterm.c | |
parent | 419ca81809c2eda9c9f102b7da820a6eb9685cc8 (diff) | |
download | emacs-cc29fab3a66c59e77d0ff67c0f3e2e34ec80a03c.tar.gz |
Redisplay "invisible" frames that are actually visible on modern X
* etc/NEWS: Document that "invisible" frames are now redisplayed
if the compositing manager is still displaying it as part of a
thumbnail out of Emacs's control.
* src/dispnew.c (Fredraw_display): Use FRAME_REDISPLAY_P.
* src/frame.h (FRAME_REDISPLAY_P): New macro.
* src/xdisp.c (clear_garbaged_frames, echo_area_display)
(prepare_menu_bars, redisplay_internal, display_and_set_cursor)
(gui_clear_cursor): Use FRAME_REDISPLAY_P to determine whether
or not a frame should be redisplayed.
* src/xfns.c (Fx_create_frame): Set visibility state initially.
* src/xterm.c (handle_one_xevent): Likewise.
* src/xterm.h (struct x_output): New field `visibility_state'.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 8e0a97899fe..1eef8e7a724 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -21743,9 +21743,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, case VisibilityNotify: f = x_top_window_to_frame (dpyinfo, event->xvisibility.window); - if (f && (event->xvisibility.state == VisibilityUnobscured - || event->xvisibility.state == VisibilityPartiallyObscured)) - SET_FRAME_VISIBLE (f, 1); + + if (f) + FRAME_X_OUTPUT (f)->visibility_state = event->xvisibility.state; goto OTHER; |