[Breeze window decoration] Don't repaint title bar if not damaged
ClosedPublic

Authored by broulik on Dec 2 2017, 5:42 PM.

Details

Test Plan

Resized my windows with super large border size, painted properly. Did not repaint the title bar as often as it used to.

Diff Detail

Repository
R31 Breeze
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Dec 2 2017, 5:42 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 2 2017, 5:42 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Dec 2 2017, 5:42 PM
broulik planned changes to this revision.Dec 2 2017, 5:48 PM

Breaks rendering of title bar buttons on hover

broulik updated this revision to Diff 23298.Dec 2 2017, 5:50 PM
  • Fix logic error
davidedmundson accepted this revision.Dec 2 2017, 6:02 PM
This revision is now accepted and ready to land.Dec 2 2017, 6:02 PM
graesslin added inline comments.Dec 2 2017, 6:04 PM
kdecoration/breezedecoration.cpp
479

are you sure contains is correct here? If repaint Region intersects the titleRect it should get repainted?

broulik added inline comments.Dec 2 2017, 9:37 PM
kdecoration/breezedecoration.cpp
479

Only if proper = true is set, the rect would need to be entirely contained inside the other.

graesslin accepted this revision.Dec 3 2017, 8:17 AM
hpereiradacosta accepted this revision.Dec 3 2017, 8:31 AM
This revision was automatically updated to reflect the committed changes.