mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
app: don't run driver functions if there's no driver
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -354,6 +354,11 @@ func (c *callbacks) Event(e event.Event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *Window) runFuncs(d wm.Driver) {
|
func (w *Window) runFuncs(d wm.Driver) {
|
||||||
|
// Don't run driver functions if there's no driver.
|
||||||
|
if d == nil {
|
||||||
|
<-w.ack
|
||||||
|
return
|
||||||
|
}
|
||||||
// Flush pending runnnables.
|
// Flush pending runnnables.
|
||||||
loop:
|
loop:
|
||||||
for {
|
for {
|
||||||
|
|||||||
Reference in New Issue
Block a user