D6164: Make shadows work for windows 100% width or height

David Edmundson noreply at phabricator.kde.org
Fri Jun 9 15:44:03 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: KWin.
Restricted Application added subscribers: KWin, kwin, plasma-devel.

REVISION SUMMARY
  Clients provide shadows as 9 images, which then get split into relevant quads.
  To work out the full width we need the size of an item on the left, the middle and the right.
  
  Some elements can be legitiamtely missing so to work out the width of the left edge we need to consider 
  all 3 of topleft,left,bottomleft.
  
  Currently we checked both corners in case one was missing, but it's legitimate for both to be missing if the shadow 
  stretches the whole way.
  
  BUG: 380825

TEST PLAN
  Shadow on panel, rest looks the same

REPOSITORY
  R108 KWin

BRANCH
  xdgv6

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

AFFECTED FILES
  scene_opengl.cpp
  utils.h

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


More information about the Plasma-devel mailing list