1# Window Subsystem Changelog 2 3## cl.window.1 Error Code Returned by getTitleButtonRect Is Changed 4 5**Access Level** 6 7Public API 8 9**Reason for Change** 10 11The API implementation is inconsistent with the design. This API takes effect only on 2-in-1 devices. 12 13**Change Impact** 14 15This change is a non-compatible change. 16 17Before the change: When a non-2-in-1 device calls **getTitleButtonRect**, error code 1300002 is returned. 18 19After the change: When a non-2-in-1 device calls **getTitleButtonRect**, error code 801 is returned. 20 21**Start API Level** 22 2311 24 25**Change Since** 26 27OpenHarmony SDK 5.0.0.30 28 29**Key API/Component Changes** 30 31@ohos.window.d.ts 32 33System capability: SystemCapability.Window.SessionManager 34 35API: getTitleButtonRect 36 37**Adaptation Guide** 38 39Call this API on a 2-in-1 device. If it is called on a non-2-in-1 device, error code 801 is returned. 40