mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Don't update window->shaped from backends
This is properly updated from the main code these days and should not be touched by the backend code.
This commit is contained in:
parent
154be115ec
commit
cc5b22cc81
@ -2353,8 +2353,6 @@ gdk_win32_window_shape_combine_mask (GdkWindow *window,
|
||||
GDK_NOTE (MISC, g_print ("gdk_window_shape_combine_mask: %p: none\n",
|
||||
GDK_WINDOW_HWND (window)));
|
||||
SetWindowRgn (GDK_WINDOW_HWND (window), NULL, TRUE);
|
||||
|
||||
private->shaped = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2368,8 +2366,6 @@ gdk_win32_window_shape_combine_mask (GdkWindow *window,
|
||||
hrgn = _gdk_win32_bitmap_to_hrgn (mask);
|
||||
|
||||
do_shape_combine_region (window, hrgn, x, y);
|
||||
|
||||
private->shaped = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3422,8 +3418,6 @@ gdk_win32_window_shape_combine_region (GdkWindow *window,
|
||||
GDK_NOTE (MISC, g_print ("gdk_window_shape_combine_region: %p: none\n",
|
||||
GDK_WINDOW_HWND (window)));
|
||||
SetWindowRgn (GDK_WINDOW_HWND (window), NULL, TRUE);
|
||||
|
||||
private->shaped = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -3436,8 +3430,6 @@ gdk_win32_window_shape_combine_region (GdkWindow *window,
|
||||
hrgn));
|
||||
|
||||
do_shape_combine_region (window, hrgn, offset_x, offset_y);
|
||||
|
||||
private->shaped = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3424,9 +3424,6 @@ do_shape_combine_region (GdkWindow *window,
|
||||
? gdk_display_supports_shapes (GDK_WINDOW_DISPLAY (window))
|
||||
: gdk_display_supports_input_shapes (GDK_WINDOW_DISPLAY (window)))
|
||||
{
|
||||
if (shape == ShapeBounding)
|
||||
private->shaped = FALSE;
|
||||
|
||||
if (shape == ShapeBounding)
|
||||
{
|
||||
_gdk_x11_window_tmp_unset_parent_bg (window);
|
||||
@ -3454,9 +3451,6 @@ do_shape_combine_region (GdkWindow *window,
|
||||
gint n_rects = 0;
|
||||
XRectangle *xrects = NULL;
|
||||
|
||||
if (shape == ShapeBounding)
|
||||
private->shaped = TRUE;
|
||||
|
||||
_gdk_region_get_xrectangles (shape_region,
|
||||
0, 0,
|
||||
&xrects, &n_rects);
|
||||
|
Loading…
Reference in New Issue
Block a user