app/internal/window: [Wayland] remove redundant event dispatch

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-15 19:12:56 +02:00
parent 28a3de6e32
commit 55881fc09c
-1
View File
@@ -834,7 +834,6 @@ func (w *window) loop() {
var buf = make([]byte, 100)
loop:
for {
C.wl_display_dispatch_pending(w.disp.disp)
dispFd.Events &^= syscall.POLLOUT
if _, err := C.wl_display_flush(w.disp.disp); err != nil {
if err != syscall.EAGAIN {