[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Review Request: Fix dialogparent implementation
From:       Thomas_Lübking <thomas.luebking () web ! de>
Date:       2011-03-18 22:43:37
Message-ID: 20110318224337.10709.18952 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100887/
-----------------------------------------------------------

Review request for kwin.


Summary
-------

Rewrite.
a) use QMap instead of QHash because of
b) don't keep every client but only (temporarily) the relevant ones (typically << 10) \
and therefore c) don't leak
d) the bloody QHash:operator[] should yell a compiler "#warning WRONG!" ;-P
e) i raised the anim time from 200 -> 300, matter of personal taste though (it's esp. \
about fade out, because there's also another client appearing -animatedly- pot. \
sucking cpu anyway, thus blocking updates for a short while)

---
> > I vote for an exceptional backport to branch despite it's a big patch.
> > It's only a tiny effect & little code and whatever regression i wrote into it - i \
> > cannot be worse ;-P
> > (patch is for branch, i'd just copy the file over to master then. ws should be ok \
> > - hopefully...)


This addresses bug 267349.
    http://bugs.kde.org/show_bug.cgi?id=267349


Diffs
-----

  kwin/effects/dialogparent/dialogparent.h 08eef03 
  kwin/effects/dialogparent/dialogparent.cpp cc663aa 

Diff: http://git.reviewboard.kde.org/r/100887/diff


Testing
-------

Yes. See QtDebug include in the first version :-)


Thanks,

Thomas


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/100887/">http://git.reviewboard.kde.org/r/100887/</a>
  </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for kwin.</div>
<div>By Thomas Lübking.</div>





<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Rewrite. a) use QMap instead of QHash because of
b) don&#39;t keep every client but only (temporarily) the relevant ones (typically \
&lt;&lt; 10) and therefore c) don&#39;t leak
d) the bloody QHash:operator[] should yell a compiler &quot;#warning WRONG!&quot; ;-P
e) i raised the anim time from 200 -&gt; 300, matter of personal taste though \
(it&#39;s esp. about fade out, because there&#39;s also another client appearing \
-animatedly- pot. sucking cpu anyway, thus blocking updates for a short while)

---
> > I vote for an exceptional backport to branch despite it&#39;s a big patch.
> > It&#39;s only a tiny effect &amp; little code and whatever regression i wrote \
> > into it - i cannot be worse ;-P
> > (patch is for branch, i&#39;d just copy the file over to master then. ws should \
> > be ok - hopefully...)</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Yes. See QtDebug include in the first version :-)</pre>  </td>
 </tr>
</table>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="http://bugs.kde.org/show_bug.cgi?id=267349">267349</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>kwin/effects/dialogparent/dialogparent.h <span style="color: \
grey">(08eef03)</span></li>

 <li>kwin/effects/dialogparent/dialogparent.cpp <span style="color: \
grey">(cc663aa)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/100887/diff/" style="margin-left: \
3em;">View Diff</a></p>




  </td>
 </tr>
</table>




  </div>
 </body>
</html>



_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic