mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
app: implement Window.Close for Wayland
This is a followup from a question sent to the mailing list. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+4
-2
@@ -1478,8 +1478,10 @@ func (w *window) ShowTextInput(show bool) {}
|
|||||||
|
|
||||||
func (w *window) SetInputHint(_ key.InputHint) {}
|
func (w *window) SetInputHint(_ key.InputHint) {}
|
||||||
|
|
||||||
// Close the window. Not implemented for Wayland.
|
// Close the window.
|
||||||
func (w *window) Close() {}
|
func (w *window) Close() {
|
||||||
|
w.dead = true
|
||||||
|
}
|
||||||
|
|
||||||
// Maximize the window. Not implemented for Wayland.
|
// Maximize the window. Not implemented for Wayland.
|
||||||
func (w *window) Maximize() {}
|
func (w *window) Maximize() {}
|
||||||
|
|||||||
+1
-1
@@ -303,7 +303,7 @@ func (w *Window) SetCursorName(name pointer.CursorName) {
|
|||||||
// Close the window. The window's event loop should exit when it receives
|
// Close the window. The window's event loop should exit when it receives
|
||||||
// system.DestroyEvent.
|
// system.DestroyEvent.
|
||||||
//
|
//
|
||||||
// Currently, only macOS, Windows and X11 drivers implement this functionality,
|
// Currently, only macOS, Windows, X11 and Wayland drivers implement this functionality,
|
||||||
// all others are stubbed.
|
// all others are stubbed.
|
||||||
func (w *Window) Close() {
|
func (w *Window) Close() {
|
||||||
w.driverDefer(func(d driver) {
|
w.driverDefer(func(d driver) {
|
||||||
|
|||||||
Reference in New Issue
Block a user