D8796: Support dynamic output enabling/disabling from KScreen

2017-11-21 Thread David Edmundson
This revision was automatically updated to reflect the committed changes. Closed by commit R108:01c1870e9dde: Support dynamic output enabling/disabling from KScreen (authored by davidedmundson). REPOSITORY R108 KWin CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8796?vs=22629=22692

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-20 Thread Martin Flöser
graesslin accepted this revision. This revision is now accepted and ready to land. REPOSITORY R108 KWin BRANCH master REVISION DETAIL https://phabricator.kde.org/D8796 To: davidedmundson, #plasma, graesslin Cc: ngraham, luebking, broulik, graesslin, plasma-devel, kwin, #kwin, bwowk,

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-20 Thread David Edmundson
davidedmundson updated this revision to Diff 22629. davidedmundson added a comment. Restricted Application edited projects, added KWin; removed Plasma. skip monitors in changeset that don't exist without aborting REPOSITORY R108 KWin CHANGES SINCE LAST UPDATE

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-17 Thread David Edmundson
davidedmundson added inline comments. INLINE COMMENTS > graesslin wrote in drm_backend.cpp:553 > why return? Shouldn't it be a continue? Can do. Though I'd want to change the existing loop too to keep it consistent. REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D8796

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-17 Thread Martin Flöser
graesslin added inline comments. INLINE COMMENTS > drm_backend.cpp:553 > +qCWarning(KWIN_DRM) << "Could NOT find DrmOutput matching " > << it.key()->uuid(); > +return; > +} why return? Shouldn't it be a continue? REPOSITORY R108 KWin REVISION

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-17 Thread David Edmundson
davidedmundson updated this revision to Diff 22508. davidedmundson added a comment. Restricted Application edited projects, added Plasma; removed KWin. Make sure we always enable monitors before disabling them Never remove the final screen REPOSITORY R108 KWin CHANGES SINCE LAST UPDATE

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-13 Thread David Edmundson
davidedmundson added a comment. > Does KScreen allow to disable all screens? The user gets a prompt "are you sure you want to disable all outputs?" If they press the "I'm an idiot" button, then it will. > and if yes: how does KWin behave in this case? Very badly. > How

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-13 Thread Thomas Lübking
luebking added a comment. Ignore the request as "probably temporary" and just freeze rendering? REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D8796 To: davidedmundson, #plasma Cc: luebking, broulik, graesslin, plasma-devel, kwin, #kwin, bwowk, ZrenBot, progwolff,

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-13 Thread Kai Uwe Broulik
broulik added a comment. Given how well Qt handled the no screen case in the past I'd advise against being able to disable all of them. REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D8796 To: davidedmundson, #plasma Cc: broulik, graesslin, plasma-devel, kwin, #kwin,

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-13 Thread Martin Flöser
graesslin added a comment. Does KScreen allow to disable all screens? And if yes: how does KWin behave in this case? I had been thinking about this for some time and are not sure how KWin should handle this situation. I can see reasons to say "user asked for it, so all screens should go

D8796: Support dynamic output enabling/disabling from KScreen

2017-11-13 Thread David Edmundson
davidedmundson created this revision. davidedmundson added a reviewer: Plasma. Restricted Application added a project: KWin. Restricted Application added subscribers: KWin, kwin, plasma-devel. REVISION SUMMARY We need to keep the DrmOutput object to still have the WaylandOutputDevice.