Skip to content
  • Vlad Zahorodnii's avatar
    scripting: Deprecate WorkspaceWrapper::screenResized · 73973641
    Vlad Zahorodnii authored
    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.
    73973641