xdotool windowmove %1 x y wouldn't has any effect, so removed it.

Change-Id: I5b34d5233f3d06085654134e1b897eba0168066b
This commit is contained in:
snyh 2014-12-25 14:50:02 +08:00
parent ef8674f58f
commit a478657c63

View File

@ -38,16 +38,8 @@ func NewDock() *Dock {
return dock
}
func (dock *Dock) fixSwitchMode() {
_, err := exec.Command("/usr/bin/xdotool", "search", "--onlyvisible", "dde-dock", "windowmove", "%1", "x", "y").Output()
if err != nil {
logger.Warning("fixSwitchMode failed:", err)
}
}
func (dock *Dock) restartDock() {
if isDBusSenderExist(_DDE_DOCK_SENDER) {
dock.fixSwitchMode()
return
}