aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.h3
-rw-r--r--src/treesit.c2
-rw-r--r--src/w32term.c25
3 files changed, 5 insertions, 25 deletions
diff --git a/src/frame.h b/src/frame.h
index bf0a4169f21..bc8c3498634 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -450,7 +450,6 @@ struct frame
450 bool_bf no_accept_focus : 1; 450 bool_bf no_accept_focus : 1;
451 451
452#ifdef HAVE_WINDOW_SYSTEM 452#ifdef HAVE_WINDOW_SYSTEM
453# ifndef HAVE_NTGUI
454 /* True if this frame is a tooltip frame. */ 453 /* True if this frame is a tooltip frame. */
455 bool_bf tooltip : 1; 454 bool_bf tooltip : 1;
456 455
@@ -464,7 +463,7 @@ struct frame
464 /* Nonzero if we should actually display horizontal scroll bars on this frame. */ 463 /* Nonzero if we should actually display horizontal scroll bars on this frame. */
465 bool_bf horizontal_scroll_bars : 1; 464 bool_bf horizontal_scroll_bars : 1;
466 465
467 466# ifndef HAVE_NTGUI
468 /* True if this is an override_redirect frame. */ 467 /* True if this is an override_redirect frame. */
469 bool_bf override_redirect : 1; 468 bool_bf override_redirect : 1;
470#endif 469#endif
diff --git a/src/treesit.c b/src/treesit.c
index 6677158b9de..c02f94ec758 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -651,7 +651,7 @@ treesit_load_language (Lisp_Object language_symbol,
651 651
652 /* Override the library name and C name, if appropriate. */ 652 /* Override the library name and C name, if appropriate. */
653 Lisp_Object override_name; 653 Lisp_Object override_name;
654 Lisp_Object override_c_name; 654 Lisp_Object override_c_name UNINIT;
655 bool found_override = treesit_find_override_name (language_symbol, 655 bool found_override = treesit_find_override_name (language_symbol,
656 &override_name, 656 &override_name,
657 &override_c_name); 657 &override_c_name);
diff --git a/src/w32term.c b/src/w32term.c
index 3a627308137..e41d2fa3c34 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6347,14 +6347,13 @@ w32_read_socket (struct terminal *terminal,
6347 if (FRAME_TOOLTIP_P (f)) 6347 if (FRAME_TOOLTIP_P (f))
6348 continue; 6348 continue;
6349 6349
6350 /* Check "visible" frames and mark each as obscured or not. 6350 /* Check "visible" frames and mark each as visible or not.
6351 Note that visible is nonzero for unobscured and obscured 6351 Note that visible is nonzero for unobscured and obscured
6352 frames, but zero for hidden and iconified frames. */ 6352 frames, but zero for hidden and iconified frames. */
6353 if (FRAME_W32_P (f) && FRAME_VISIBLE_P (f)) 6353 if (FRAME_W32_P (f) && FRAME_VISIBLE_P (f))
6354 { 6354 {
6355 RECT clipbox; 6355 RECT clipbox;
6356 HDC hdc; 6356 HDC hdc;
6357 bool obscured;
6358 6357
6359 enter_crit (); 6358 enter_crit ();
6360 /* Query clipping rectangle for the entire window area 6359 /* Query clipping rectangle for the entire window area
@@ -6368,29 +6367,11 @@ w32_read_socket (struct terminal *terminal,
6368 ReleaseDC (FRAME_W32_WINDOW (f), hdc); 6367 ReleaseDC (FRAME_W32_WINDOW (f), hdc);
6369 leave_crit (); 6368 leave_crit ();
6370 6369
6371 obscured = FRAME_OBSCURED_P (f); 6370 if (!(clipbox.right == clipbox.left
6372 6371 || clipbox.bottom == clipbox.top))
6373 if (clipbox.right == clipbox.left || clipbox.bottom == clipbox.top)
6374 {
6375 /* Frame has become completely obscured so mark as such (we
6376 do this by setting visible to 2 so that FRAME_VISIBLE_P
6377 is still true, but redisplay will skip it). */
6378 SET_FRAME_VISIBLE (f, 2);
6379
6380 if (!obscured)
6381 DebPrint (("frame %p (%s) obscured\n", f, SDATA (f->name)));
6382 }
6383 else
6384 { 6372 {
6385 /* Frame is not obscured, so mark it as such. */ 6373 /* Frame is not obscured, so mark it as such. */
6386 SET_FRAME_VISIBLE (f, 1); 6374 SET_FRAME_VISIBLE (f, 1);
6387
6388 if (obscured)
6389 {
6390 SET_FRAME_GARBAGED (f);
6391 DebPrint (("obscured frame %p (%s) found to be visible\n",
6392 f, SDATA (f->name)));
6393 }
6394 } 6375 }
6395 } 6376 }
6396 } 6377 }