fixes "screen size change is sometimes failing".

This commit is contained in:
Miroslav Šedivý
2020-11-07 17:22:25 +01:00
parent e4fa855f7b
commit a6fd0f3d25
4 changed files with 67 additions and 64 deletions

View File

@ -15,7 +15,8 @@ type ScreenConfiguration struct {
type DesktopManager interface {
Start()
Shutdown() error
OnScreenSizeChange(listener func(width int, height int, rate int))
OnBeforeScreenSizeChange(listener func())
OnAfterScreenSizeChange(listener func())
// xorg
ChangeScreenSize(width int, height int, rate int) error