mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
xwayland: Ensure we've got an owner when setting the X selection owner
Otherwise we may end up claiming the X selection when there's no wayland selection owner.
This commit is contained in:
parent
719d8bd0c7
commit
0b0ce4193f
@ -847,10 +847,10 @@ meta_selection_bridge_ownership_notify (struct wl_listener *listener,
|
||||
|
||||
if (!owner && selection->window == selection->owner)
|
||||
{
|
||||
XSetSelectionOwner (xdisplay, selection->selection_atom,
|
||||
None, selection->timestamp);
|
||||
XSetSelectionOwner (xdisplay, selection->selection_atom,
|
||||
None, selection->timestamp);
|
||||
}
|
||||
else if (selection->source != owner)
|
||||
else if (owner && selection->source != owner)
|
||||
{
|
||||
XSetSelectionOwner (xdisplay,
|
||||
selection->selection_atom,
|
||||
|
Loading…
Reference in New Issue
Block a user