Closed justforlxz closed 5 months ago
关键摘要:
onSurfaceModeChanged
函数中,增加了对特定客户端名称的直接处理,而不是依赖于XdgDecorationManager.Client
模式。这可能违反了原有的逻辑,需要确认这是否是预期的行为。onSurfaceModeChanged
和Component.onCompleted
中,对特定客户端名称的处理逻辑是相同的,可以考虑提取成一个单独的函数以减少重复。onSurfaceModeChanged
或Component.onCompleted
调用时,都会执行Helper.clientName
的调用,这可能会导致不必要的性能开销。如果这些名称在应用程序中不会频繁变化,可以考虑缓存结果。是否建议立即修改:
Helper.clientName
的结果可以提高性能。[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Groveer, justforlxz
The full list of commands accepted by this bot can be found here.
Desktop and Launchpad do not yet support LayerShell
Log: