mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
app: add Window.Raise to bring a window to the front
Fixes gio#252 Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
@@ -604,6 +604,16 @@ func (w *Window) updateCursor() {
|
||||
}
|
||||
}
|
||||
|
||||
// Raise requests that the platform bring this window to the top of all open windows.
|
||||
// Some platforms do not allow this except under certain circumstances, such as when
|
||||
// a window from the same application already has focus. If the platform does not
|
||||
// support it, this method will do nothing.
|
||||
func (w *Window) Raise() {
|
||||
w.driverDefer(func(d driver) {
|
||||
d.Raise()
|
||||
})
|
||||
}
|
||||
|
||||
func (q *queue) Events(k event.Tag) []event.Event {
|
||||
return q.q.Events(k)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user