[Differential] [Request, 201 lines] D2233: Announce output changes to Wayland for platforms not handling outputs

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Wed Jul 20 09:48:43 UTC 2016


graesslin created this revision.
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added subscribers: kwin, plasma-devel.
Restricted Application added projects: Plasma on Wayland, KWin.

REVISION SUMMARY
  Most platforms like the nested and virtual do not handle the outputs
  themselves and WaylandServer announces the Outputs to Wayland.
  
  So far this was static: at startup it got announced once to Wayland
  and any changes were not catched.
  
  This change makes WaylandServer listen to changes to the Screens and
  sync them to Wayland.
  
  Unfortunately KWin's internal Screen information is not sufficient to
  properly synchronize this to Wayland and also Wayland by not supporting
  adding/removing modes does not help.
  
  Thus the solution implemented here is to add new outputs reflecting the
  changes and then removing the old ones. This creates situations with more
  outputs being present than actually there, but prevents that there are
  no outputs at all.

TEST PLAN
  Auto test added which verifies this for the virtual platform

REPOSITORY
  rKWIN KWin

BRANCH
  announce-output-changes-to-wayland

REVISION DETAIL
  https://phabricator.kde.org/D2233

AFFECTED FILES
  autotests/integration/CMakeLists.txt
  autotests/integration/screen_changes_test.cpp
  plugins/platforms/virtual/screens_virtual.cpp
  wayland_server.cpp
  wayland_server.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, #kwin, #plasma_on_wayland
Cc: plasma-devel, kwin, hardening, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160720/f925186b/attachment.html>


More information about the Plasma-devel mailing list