mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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:
parent
15b3f33965
commit
b11b342ad4
@ -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);
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user