Open Bug 2005351 Opened 9 months ago Updated 6 days ago

[Wayland] Clipboard sequence number is still changed multiple times if the clipboard data is set by us

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

People

(Reporter: edgar, Unassigned)

References

(Blocks 2 open bugs)

Details

I found bug 1935188 isn't enough to fix bug 1987113.
It is because when setting the clipboard data, we clear the clipboard data first which also generate a clipboard change event.
So it ends up having two change event fired, but bug 1935188 only ignore the first one.

(ni? myself to see if I can work out a solution based on bug 1935188)

Flags: needinfo?(echen)
Flags: needinfo?(echen)
Flags: needinfo?(echen)

Thanks for report this. Please NI me if you need any help here, love to see it fixed.

Blocks: 1926775

(In reply to Edgar Chen [:edgar] from comment #0)

It is because when setting the clipboard data, we clear the clipboard data first which also generate a clipboard change event.
So it ends up having two change event fired, but bug 1935188 only ignore the first one.

My previous comment isn't exactly correct.
After some more investigation, it seems like Wayland have a different "clipboard owner" concept, the clipboard owner change callback is also invoke when application lose the system focus. I don't have idea how to improve clipboard sequence number on Wayland at the moment.

Flags: needinfo?(echen)
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.