GdkWin32: Remove some work arounds that are not needed anymore

2cc650ce was added to work around some of the regressions
introduced by 79557271, but that commit was finally reverted
in 43476c09.

We can now revert 2cc650ce as well.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6614
This commit is contained in:
Luca Bacci
2024-04-06 10:44:02 +02:00
committed by Mat
parent 49046f5c34
commit 9b8826f8a7
2 changed files with 1 additions and 5 deletions

View File

@@ -3081,7 +3081,6 @@ gdk_event_translate (MSG *msg,
GetForegroundWindow () == GDK_SURFACE_HWND (window))
{
SetForegroundWindow (GDK_SURFACE_HWND (impl->transient_owner));
SetCapture (GDK_SURFACE_HWND (impl->transient_owner));
}
}

View File

@@ -4804,10 +4804,7 @@ gdk_win32_toplevel_set_property (GObject *object,
GDK_SURFACE (surface)->modal_hint = g_value_get_boolean (value);
if (GDK_SURFACE (surface)->modal_hint)
{
SetCapture (GDK_SURFACE_HWND (surface));
_gdk_push_modal_window (surface);
}
_gdk_push_modal_window (surface);
g_object_notify_by_pspec (G_OBJECT (surface), pspec);
break;