Skip to content

Commit

Permalink
Add method to close X windows
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Jun 8, 2021
1 parent 979dd99 commit 34def35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions desktop_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ func (x Xorg) RequestActivation(w Window) error {
return ewmh.ActiveWindowReq(x.util, xproto.Window(w.ID))
}

// CloseWindow closes a window.
func (x Xorg) CloseWindow(w Window) error {
return ewmh.CloseWindow(x.util, xproto.Window(w.ID))
}

func (x Xorg) atom(aname string) *xproto.InternAtomReply {
a, err := xproto.InternAtom(x.conn, true, uint16(len(aname)), aname).Reply()
if err != nil {
Expand Down

0 comments on commit 34def35

Please sign in to comment.