app,app/internal/wm: fold context MakeCurrent/ReleaseCurrent into Lock/Unlock

While here, make context Refresh useful and remove the redundant
MakeCurrent from the window loop.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-08-04 12:03:04 +02:00
parent 4dd6a50670
commit 0bdc2e0432
11 changed files with 83 additions and 132 deletions
+3 -7
View File
@@ -50,7 +50,9 @@ func (c *context) Present() error {
return nil
}
func (c *context) Lock() {}
func (c *context) Lock() error {
return nil
}
func (c *context) Unlock() {}
@@ -58,12 +60,6 @@ func (c *context) Refresh() error {
return nil
}
func (c *context) MakeCurrent() error {
return nil
}
func (c *context) ReleaseCurrent() {}
func (w *window) NewContext() (Context, error) {
return newContext(w)
}