File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1969,6 +1969,7 @@ public void paste () {
1969
1969
if (GTK .GTK4 ) {
1970
1970
long textHandle = GTK4 .gtk_widget_get_first_child (entryHandle );
1971
1971
GTK4 .gtk_widget_activate_action (textHandle , OS .action_paste_clipboard , null );
1972
+ display .processEvents ();
1972
1973
} else {
1973
1974
GTK3 .gtk_editable_paste_clipboard (entryHandle );
1974
1975
}
Original file line number Diff line number Diff line change @@ -4543,6 +4543,13 @@ public boolean readAndDispatch () {
4543
4543
return isDisposed () || runAsyncMessages (false );
4544
4544
}
4545
4545
4546
+ void processEvents () {
4547
+ if (!isDisposed ()) {
4548
+ while (readAndDispatch ()) {
4549
+ }
4550
+ }
4551
+ }
4552
+
4546
4553
static void register (Display display ) {
4547
4554
synchronized (Device .class ) {
4548
4555
for (int i =0 ; i <Displays .length ; i ++) {
You can’t perform that action at this time.
0 commit comments