func (self *SessionModule) MoveWindow(window_id string, x int, y int) error {
	if id, err := self.toX11WindowId(window_id); err == nil {
		return ewmh.MoveWindow(self.X, id, x, y)
	} else {
		return err
	}
}
Beispiel #2
0
// WMMove changes the position of a window without touching the size.
// This should be used when moving a top-level client window with
// reparenting winow managers that support EWMH.
func (w *Window) WMMove(x, y int) error {
	return ewmh.MoveWindow(w.X, w.Id, x, y)
}