Skip to content

Commit 34def35

Browse files
committed
Add method to close X windows
1 parent 979dd99 commit 34def35

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

desktop_unix.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ func (x Xorg) RequestActivation(w Window) error {
153153
return ewmh.ActiveWindowReq(x.util, xproto.Window(w.ID))
154154
}
155155

156+
// CloseWindow closes a window.
157+
func (x Xorg) CloseWindow(w Window) error {
158+
return ewmh.CloseWindow(x.util, xproto.Window(w.ID))
159+
}
160+
156161
func (x Xorg) atom(aname string) *xproto.InternAtomReply {
157162
a, err := xproto.InternAtom(x.conn, true, uint16(len(aname)), aname).Reply()
158163
if err != nil {

0 commit comments

Comments
 (0)