forked from AuroraMiddleware/gtk
gdk: Do not call gdk_selection_owner_set() internally to the backend
This should just be called by the upper layers (and result in wl_data_device.set_selection, etc). We should not trigger this within the backend otherwise. Related: https://gitlab.gnome.org/GNOME/mutter/issues/878
This commit is contained in:
parent
299902b008
commit
7a891eeb6d
@ -937,7 +937,6 @@ data_source_cancelled (void *data,
|
|||||||
gdk_drag_context_cancel (context, GDK_DRAG_CANCEL_ERROR);
|
gdk_drag_context_cancel (context, GDK_DRAG_CANCEL_ERROR);
|
||||||
|
|
||||||
emit_selection_clear (display, atom);
|
emit_selection_clear (display, atom);
|
||||||
gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, TRUE);
|
|
||||||
gdk_wayland_selection_unset_data_source (display, atom);
|
gdk_wayland_selection_unset_data_source (display, atom);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1048,7 +1047,6 @@ primary_source_cancelled (void *data,
|
|||||||
|
|
||||||
atom = atoms[ATOM_PRIMARY];
|
atom = atoms[ATOM_PRIMARY];
|
||||||
emit_selection_clear (display, atom);
|
emit_selection_clear (display, atom);
|
||||||
gdk_selection_owner_set (NULL, atom, GDK_CURRENT_TIME, TRUE);
|
|
||||||
gdk_wayland_selection_unset_data_source (display, atom);
|
gdk_wayland_selection_unset_data_source (display, atom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user