]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/gtkwin.c
GTK3: give I/O events lower priority than window redraws.
[PuTTY.git] / unix / gtkwin.c
index e711458e80dc69f4f8ca727efe11e73d21164826..2879b57e9877814b27202f4f8716aa613c64d320 100644 (file)
@@ -4053,7 +4053,8 @@ uxsel_id *uxsel_input_add(int fd, int rwx) {
     if (rwx & 4) flags |= G_IO_PRI;
     id->chan = g_io_channel_unix_new(fd);
     g_io_channel_set_encoding(id->chan, NULL, NULL);
-    id->watch_id = g_io_add_watch(id->chan, flags, fd_input_func, NULL);
+    id->watch_id = g_io_add_watch_full(id->chan, GDK_PRIORITY_REDRAW+1, flags,
+                                       fd_input_func, NULL, NULL);
 #else
     int flags = 0;
     if (rwx & 1) flags |= GDK_INPUT_READ;