mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
app/internal/window: [Wayland] remove redundant event dispatch
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -834,7 +834,6 @@ func (w *window) loop() {
|
|||||||
var buf = make([]byte, 100)
|
var buf = make([]byte, 100)
|
||||||
loop:
|
loop:
|
||||||
for {
|
for {
|
||||||
C.wl_display_dispatch_pending(w.disp.disp)
|
|
||||||
dispFd.Events &^= syscall.POLLOUT
|
dispFd.Events &^= syscall.POLLOUT
|
||||||
if _, err := C.wl_display_flush(w.disp.disp); err != nil {
|
if _, err := C.wl_display_flush(w.disp.disp); err != nil {
|
||||||
if err != syscall.EAGAIN {
|
if err != syscall.EAGAIN {
|
||||||
|
|||||||
Reference in New Issue
Block a user