-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
screen: defer Paint() call using an IdleEvent
This way, we avoid the assertion failure in FileListPage::PaintListItem(), caused by FileBrowserPage::Reload() resetting the FileList but not updating the ListWindow just yet; but the mpdclient::GetConnection() could return an idle event which would then trigger a synchronous repaint. We avoid lots of undefined behavior by deferring all Paint() calls with an IdleEvent, and maybe we save a few redundant Paint() calls. Fixes https://bugs.debian.org/981152 Closes #87
- Loading branch information
1 parent
a7adc05
commit e1c9840
Showing
4 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters