mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Add a callback for wakeups
This commit is contained in:
@@ -319,6 +319,12 @@ func (self *Loop) run() (err error) {
|
||||
for len(self.wakeup_channel) > 0 {
|
||||
<-self.wakeup_channel
|
||||
}
|
||||
if self.OnWakeup != nil {
|
||||
err = self.OnWakeup()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
case msg_id := <-write_done_channel:
|
||||
self.flush_pending_writes(tty_write_channel)
|
||||
if self.OnWriteComplete != nil {
|
||||
|
||||
Reference in New Issue
Block a user