mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix switch desktop failed problem.
operation will aborted when timestamp is gotten failed. Change-Id: Ib669e8eda3542ad6ad40082f65b3a6f5aac29f99
This commit is contained in:
parent
b9d7589d02
commit
bb1c3dc0ec
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user