]> git.eshelyaron.com Git - emacs.git/commitdiff
Have X builds handle VisibilityNotify events (Bug#48268, Bug#48413)
authorMartin Rudalics <rudalics@gmx.at>
Sat, 15 May 2021 07:20:50 +0000 (09:20 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 15 May 2021 07:20:50 +0000 (09:20 +0200)
* src/xterm.c (handle_one_xevent): Handle VisibilityNotify
events (Bug#48268, Bug#48413).

src/xterm.c

index bdf0804f89546e9b983cd1e290d7fb3ed59dd0fd..1887c3255d4c3d601816de44b493734dc8ead042 100644 (file)
@@ -9343,6 +9343,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
       goto OTHER;
 
     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);
+
       goto OTHER;
 
     case MappingNotify: