Commit 9cfcc37
lafricain79
fix: use GDK_SELECTION_PRIMARY instead of GDK_SELECTION_CLIPBOARD for dictionary lookup on double-click
When double-clicking a word to look it up in the dictionary, Xiphos was
reading GDK_SELECTION_CLIPBOARD, which is filled asynchronously by the
WebKit COPY command. This caused a timing issue where the previous word
was looked up instead of the newly selected one.
The fix reads GDK_SELECTION_PRIMARY instead, which X11 fills
automatically and synchronously when the user double-clicks a word,
making it immediately available for the dictionary lookup.
The now-redundant WebKit COPY block (#ifdef USE_WEBKIT2 ... #endif) has
also been removed as it is no longer needed for this functionality.
Fixes #12121 parent d4243f6 commit 9cfcc37
1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 70 | + | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
| |||
0 commit comments