From 1f798643c87bea1036803a357e65ed17ffbcc4eb Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 24 Jun 2020 15:37:11 +0200 Subject: [PATCH] gtkprintoperation-win32: Don't track grab-notify Further grabs could presumably only come from events handled within the dialog itself. It seems overeager to do this. --- gtk/gtkprintoperation-win32.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 2b9ec44b75..ad430760d4 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -1395,15 +1395,6 @@ print_callback_new (void) return &callback->iPrintDialogCallback; } -static void -plug_grab_notify (GtkWidget *widget, - gboolean was_grabbed, - GtkPrintOperation *op) -{ - EnableWindow (GetAncestor (GDK_SURFACE_HWND (gtk_native_get_surface (gtk_widget_get_native (widget))), GA_ROOT), - was_grabbed); -} - static INT_PTR CALLBACK pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam) { @@ -1429,9 +1420,6 @@ pageDlgProc (HWND wnd, UINT message, WPARAM wparam, LPARAM lparam) /* This dialog is modal, so we grab the embed widget */ gtk_grab_add (plug); - - /* When we lose the grab we need to disable the print dialog */ - g_signal_connect (plug, "grab-notify", G_CALLBACK (plug_grab_notify), op); return FALSE; } else if (message == WM_DESTROY)