fix switch desktop failed problem.

operation will aborted when timestamp is gotten failed.

Change-Id: Ib669e8eda3542ad6ad40082f65b3a6f5aac29f99
This commit is contained in:
liliqiang 2015-06-12 16:46:35 +08:00
parent b9d7589d02
commit bb1c3dc0ec

View File

@ -55,7 +55,7 @@ func changeWorkspaceIfNeeded(xid xproto.Window) error {
timeStamp, err := ewmh.WmUserTimeGet(XU, xid)
if err != nil {
return fmt.Errorf("Get timestamp of 0x%x failed: %v", uint32(xid), err)
logger.Warningf("Get timestamp of 0x%x failed: %v", uint32(xid), err)
}
err = ewmh.ClientEvent(XU, XU.RootWin(), "_NET_CURRENT_DESKTOP", int(desktopNum), int(timeStamp))