Removed some redundant draw calls

This commit is contained in:
Sasha Koshka 2023-03-01 13:43:36 -05:00
parent 1f2e8aa677
commit 6d9bc4f868

View File

@ -86,7 +86,7 @@ func (window *Window) exposeEventFollows (event xproto.ConfigureNotifyEvent) (fo
untypedEvent := nextEvents[0]
if untypedEvent.Err == nil {
typedEvent, ok :=
untypedEvent.Event.(xproto.ConfigureNotifyEvent)
untypedEvent.Event.(xproto.ExposeEvent)
if ok && typedEvent.Window == event.Window {
return true