D5659: Get output size with output-geometry() rather than mode size directly

David Edmundson noreply at phabricator.kde.org
Sat Apr 29 17:24:02 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  We can use output->geometry to get the current mode size with transform
  applied simplifying a bunch of code, whilst being currently exactly the
  same code.
  
  This also applies the is->horizontal ? width : height to the
  displaySwitch button. Fixing a bug if you had a rotated laptop
  monitor then pressed the display switch button then it would be using the 
  wrong geometry.
  
  ----
  
  Real reason for this patch is that if I make geometry() the definitive
  call for getting output size with transformations I can then do all the
  scaling support in a simple tidy one-line edit.

REPOSITORY
  R104 KScreen

BRANCH
  master

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

AFFECTED FILES
  kded/generator.cpp

To: davidedmundson, #plasma
Cc: plasma-devel, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170429/3fa77bd8/attachment-0001.html>


More information about the Plasma-devel mailing list