GDK W32: stop using the OWNERCHANGE event

It was removed completely. For now just comment out the code that used to emit it.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
This commit is contained in:
Руслан Ижбулатов 2017-12-11 07:37:03 +00:00 committed by Chun-wei Fan
parent 15b3f33965
commit b11b342ad4
2 changed files with 4 additions and 2 deletions

View File

@ -540,7 +540,9 @@ inner_clipboard_window_procedure (HWND hwnd,
{
HWND hwnd_owner;
HWND hwnd_opener;
/*
GdkEvent *event;
*/
GdkWin32Selection *win32_sel = _gdk_win32_selection_get ();
hwnd_owner = GetClipboardOwner ();
@ -589,7 +591,7 @@ inner_clipboard_window_procedure (HWND hwnd,
_gdk_win32_clear_clipboard_queue ();
}
/* GDK_OWNER_CHANGE does not exist anymore since 437d70f56919916e884a81d3bff0170322ab2906
event = gdk_event_new (GDK_OWNER_CHANGE);
event->owner_change.window = NULL;
event->owner_change.reason = GDK_OWNER_CHANGE_NEW_OWNER;
@ -597,6 +599,7 @@ inner_clipboard_window_procedure (HWND hwnd,
event->owner_change.time = _gdk_win32_get_next_tick (0);
event->owner_change.selection_time = GDK_CURRENT_TIME;
_gdk_win32_append_event (event);
*/
if (_hwnd_next_viewer != NULL)
return SendMessage (_hwnd_next_viewer, message, wparam, lparam);

View File

@ -798,7 +798,6 @@ _gdk_win32_print_event (const GdkEvent *event)
CASE (GDK_DROP_FINISHED);
CASE (GDK_SCROLL);
CASE (GDK_WINDOW_STATE);
CASE (GDK_OWNER_CHANGE);
CASE (GDK_GRAB_BROKEN);
#undef CASE
default: g_assert_not_reached ();