Fix handling of GDK_NONE
Don't intern "NONE" and warn if GDK_NONE is converted to an X atom. Problem pointed out in bug 580511.
This commit is contained in:
@ -404,7 +404,10 @@ gdk_selection_send_notify_for_display (GdkDisplay *display,
|
||||
xevent.requestor = requestor;
|
||||
xevent.selection = gdk_x11_atom_to_xatom_for_display (display, selection);
|
||||
xevent.target = gdk_x11_atom_to_xatom_for_display (display, target);
|
||||
xevent.property = gdk_x11_atom_to_xatom_for_display (display, property);
|
||||
if (property == GDK_NONE)
|
||||
xevent.property = None;
|
||||
else
|
||||
xevent.property = gdk_x11_atom_to_xatom_for_display (display, property);
|
||||
xevent.time = time;
|
||||
|
||||
_gdk_send_xevent (display, requestor, False, NoEventMask, (XEvent*) & xevent);
|
||||
|
||||
Reference in New Issue
Block a user