sizeof (gdouble) * gdk_device_get_n_axes (event->motion.device));
break;
- case GDK_OWNER_CHANGE:
- new_event->owner_change.owner = event->owner_change.owner;
- if (new_event->owner_change.owner)
- g_object_ref (new_event->owner_change.owner);
- break;
-
case GDK_SELECTION_CLEAR:
case GDK_SELECTION_NOTIFY:
case GDK_SELECTION_REQUEST:
case GDK_MOTION_NOTIFY:
g_free (event->motion.axes);
break;
-
- case GDK_OWNER_CHANGE:
- if (event->owner_change.owner)
- g_object_unref (event->owner_change.owner);
- break;
case GDK_SELECTION_CLEAR:
case GDK_SELECTION_NOTIFY:
* @type: the type of the event (%GDK_OWNER_CHANGE).
* @window: the window which received the event
* @send_event: %TRUE if the event was sent explicitly.
- * @owner: the new owner of the selection, or %NULL if there is none
* @reason: the reason for the ownership change as a #GdkOwnerChange value
* @selection: the atom identifying the selection
* @time: the timestamp of the event
GdkEventType type;
GdkWindow *window;
gint8 send_event;
- GdkWindow *owner;
GdkOwnerChange reason;
GdkAtom selection;
guint32 time;
event = gdk_event_new (GDK_OWNER_CHANGE);
event->owner_change.window = g_object_ref (window);
- event->owner_change.owner = NULL;
event->owner_change.reason = GDK_OWNER_CHANGE_NEW_OWNER;
event->owner_change.selection = atom;
event->owner_change.time = GDK_CURRENT_TIME;
GDK_NOTE (DND, g_print (" \n"));
- owner = gdk_win32_window_lookup_for_display (_gdk_display, hwnd_owner);
- if (owner == NULL)
- owner = gdk_win32_window_foreign_new_for_display (_gdk_display, hwnd_owner);
-
event = gdk_event_new (GDK_OWNER_CHANGE);
event->owner_change.window = gdk_get_default_root_window ();
- event->owner_change.owner = owner;
event->owner_change.reason = GDK_OWNER_CHANGE_NEW_OWNER;
event->owner_change.selection = GDK_SELECTION_CLIPBOARD;
event->owner_change.time = _gdk_win32_get_next_tick (0);
(event->any.type == GDK_SELECTION_REQUEST)) &&
(event->selection.requestor != NULL))
g_object_ref (event->selection.requestor);
- if ((event->any.type == GDK_OWNER_CHANGE) &&
- (event->owner_change.owner != NULL))
- g_object_ref (event->owner_change.owner);
event->any.send_event = InSendMessage ();
}
event->owner_change.type = GDK_OWNER_CHANGE;
event->owner_change.window = window;
- if (selection_notify->owner != None)
- event->owner_change.owner = gdk_x11_window_foreign_new_for_display (display,
- selection_notify->owner);
- else
- event->owner_change.owner = NULL;
event->owner_change.reason = selection_notify->subtype;
- event->owner_change.selection =
- gdk_x11_xatom_to_atom_for_display (display,
+ event->owner_change.selection =
+ gdk_x11_xatom_to_atom_for_display (display,
selection_notify->selection);
event->owner_change.time = selection_notify->timestamp;
event->owner_change.selection_time = selection_notify->selection_timestamp;
-
+
return_val = TRUE;
}
else