mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Remove gdk_window_flush_if_exposing as its not needed anymore
We no longer support modifying GdkWindow hierarchies during expose events. This is not working anymore anyway as the flush operation now does not push already rendered pixels in the flushed window from the double buffer to the window. https://bugzilla.gnome.org/show_bug.cgi?id=679144
This commit is contained in:
parent
e112cdacd4
commit
29a42085c6
@ -3444,28 +3444,6 @@ gdk_window_flush (GdkWindow *window)
|
||||
gdk_window_flush_implicit_paint (window);
|
||||
}
|
||||
|
||||
/* If we're about to move/resize or otherwise change the
|
||||
* hierarchy of a client side window in an impl and we're
|
||||
* called from an expose event handler then we need to
|
||||
* flush any already painted parts of the implicit paint
|
||||
* that are not part of the current paint, as these may
|
||||
* be used when scrolling or may overdraw the changes
|
||||
* caused by the hierarchy change.
|
||||
*/
|
||||
static void
|
||||
gdk_window_flush_if_exposing (GdkWindow *window)
|
||||
{
|
||||
GdkWindow *impl_window;
|
||||
|
||||
impl_window = gdk_window_get_impl_window (window);
|
||||
|
||||
/* If we're in an implicit paint (i.e. in an expose handler, flush
|
||||
all the already finished exposes to get things to an uptodate state. */
|
||||
if (impl_window->implicit_paint)
|
||||
gdk_window_flush (window);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gdk_window_flush_recursive_helper (GdkWindow *window,
|
||||
GdkWindowImpl *impl)
|
||||
@ -5366,8 +5344,6 @@ gdk_window_raise (GdkWindow *window)
|
||||
if (window->destroyed)
|
||||
return;
|
||||
|
||||
gdk_window_flush_if_exposing (window);
|
||||
|
||||
/* Keep children in (reverse) stacking order */
|
||||
gdk_window_raise_internal (window);
|
||||
|
||||
@ -5488,8 +5464,6 @@ gdk_window_lower (GdkWindow *window)
|
||||
if (window->destroyed)
|
||||
return;
|
||||
|
||||
gdk_window_flush_if_exposing (window);
|
||||
|
||||
/* Keep children in (reverse) stacking order */
|
||||
gdk_window_lower_internal (window);
|
||||
|
||||
@ -5545,8 +5519,6 @@ gdk_window_restack (GdkWindow *window,
|
||||
return;
|
||||
}
|
||||
|
||||
gdk_window_flush_if_exposing (window);
|
||||
|
||||
if (gdk_window_is_toplevel (window))
|
||||
{
|
||||
g_return_if_fail (gdk_window_is_toplevel (sibling));
|
||||
@ -6102,8 +6074,6 @@ gdk_window_move_resize_internal (GdkWindow *window,
|
||||
window->y == y)))
|
||||
return;
|
||||
|
||||
gdk_window_flush_if_exposing (window);
|
||||
|
||||
/* Handle child windows */
|
||||
|
||||
expose = FALSE;
|
||||
@ -6388,8 +6358,6 @@ gdk_window_scroll (GdkWindow *window,
|
||||
if (window->destroyed)
|
||||
return;
|
||||
|
||||
gdk_window_flush_if_exposing (window);
|
||||
|
||||
old_layered_area = cairo_region_copy (window->layered_region);
|
||||
old_native_child_region = collect_native_child_region (window, FALSE);
|
||||
if (old_native_child_region)
|
||||
|
Loading…
Reference in New Issue
Block a user