Skip to content

scripting: Deprecate WorkspaceWrapper::screenResized

The WorkspaceWrapper::screenResized() signal relies on the QDesktopWidget class, which is deprecated. Another issue with that signal is that it uses integers to represent screens. We need to minimize the amount of int based screen api and prefer more QScreen or AbstractOutput APIs because the former get completely broken if the output layout changes.

Since we gain not a lot from porting WorkspaceWrapper::screenResized() away from QDesktopWidget to something else and we don't use this signal in any of our scripts, this change deprecates the screenResized signal in favor of manual tracking of QScreen::geometryChanged signal.


This reduces the amount of work needed to port kwin away from Qt 5 to Qt 6.

Merge request reports