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 bool_bf no_accept_focus : 1; #ifdef HAVE_WINDOW_SYSTEM -# ifndef HAVE_NTGUI /* True if this frame is a tooltip frame. */ bool_bf tooltip : 1; @@ -464,7 +463,7 @@ struct frame /* Nonzero if we should actually display horizontal scroll bars on this frame. */ bool_bf horizontal_scroll_bars : 1; - +# ifndef HAVE_NTGUI /* True if this is an override_redirect frame. */ bool_bf override_redirect : 1; #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, /* Override the library name and C name, if appropriate. */ Lisp_Object override_name; - Lisp_Object override_c_name; + Lisp_Object override_c_name UNINIT; bool found_override = treesit_find_override_name (language_symbol, &override_name, &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, if (FRAME_TOOLTIP_P (f)) continue; - /* Check "visible" frames and mark each as obscured or not. + /* Check "visible" frames and mark each as visible or not. Note that visible is nonzero for unobscured and obscured frames, but zero for hidden and iconified frames. */ if (FRAME_W32_P (f) && FRAME_VISIBLE_P (f)) { RECT clipbox; HDC hdc; - bool obscured; enter_crit (); /* Query clipping rectangle for the entire window area @@ -6368,29 +6367,11 @@ w32_read_socket (struct terminal *terminal, ReleaseDC (FRAME_W32_WINDOW (f), hdc); leave_crit (); - obscured = FRAME_OBSCURED_P (f); - - if (clipbox.right == clipbox.left || clipbox.bottom == clipbox.top) - { - /* Frame has become completely obscured so mark as such (we - do this by setting visible to 2 so that FRAME_VISIBLE_P - is still true, but redisplay will skip it). */ - SET_FRAME_VISIBLE (f, 2); - - if (!obscured) - DebPrint (("frame %p (%s) obscured\n", f, SDATA (f->name))); - } - else + if (!(clipbox.right == clipbox.left + || clipbox.bottom == clipbox.top)) { /* Frame is not obscured, so mark it as such. */ SET_FRAME_VISIBLE (f, 1); - - if (obscured) - { - SET_FRAME_GARBAGED (f); - DebPrint (("obscured frame %p (%s) found to be visible\n", - f, SDATA (f->name))); - } } } }