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

List:       kde-panel-devel
Subject:    Re: Review Request 108585: Fix screenlocker lockwindow geometry on screen resizes
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2013-01-28 14:40:17
Message-ID: 20130128144017.13135.69277 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On Jan. 28, 2013, 11:47 a.m., Aaron J. Seigo wrote:
> > this still does not work p[roperly. now i'm getting a (too small) black rectangle \
> > on the screen around which i can see the rest of my desktop and the locker window \
> > is still not being shown. investigating now.
> 
> Thomas Lübking wrote:
> See above, try setting "p.setColor(backgroundRole(), Qt::black);"
> The paintEvent is worthless (right after init) - if the window is for some reason \
> considered ARGB, it will be translucent with the formerly black painted area. 
> Aaron J. Seigo wrote:
> ok, this does work better. now i get a fully black screen .. but also i get a fully \
> black screen ;) the greeter window is stilling getting the input, so evidently has \
> focus, but it isn't raised. i'll see what can be done about that next. 
> Aaron J. Seigo wrote:
> well, THAT was easy. simply calling raise() on the view in greeterapp.cpp fixed all \
> that. 
> i also took the opportunity to get rid of kephal .. i'll post a review request \
> momentarily.

ok, check out https://git.reviewboard.kde.org/r/108643/ ... it does indeed work as \
expected w/out PaintOutsidePaintEvent, but with the correct backgroundRole as thomas \
noted, and with an extra call to raise() the QML UI (otherwise it just gets a black \
screen).


- Aaron J.


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


On Jan. 25, 2013, 11:04 p.m., Thomas Lübking wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108585/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2013, 11:04 p.m.)
> 
> 
> Review request for kwin, Plasma, Aaron J. Seigo, and Martin Gräßlin.
> 
> 
> Description
> -------
> 
> Actually  was wrong, we do get the signals from QDesktopWidget - so the fix is \
> pretty trivial ;-) 
> Reg. bug #313835 i assume you're using some plasma screenlocker with widgets on it \
> (which has a translucent background when compositing is active and relies on the \
> lockwindow to cover the screen) 
> I've not checked such screen"saver" and have to admit, i'd not even know where to \
> check for the sources. 
> 
> This addresses bug 313835.
> http://bugs.kde.org/show_bug.cgi?id=313835
> 
> 
> Diffs
> -----
> 
> ksmserver/screenlocker/lockwindow.h 5cbc769 
> ksmserver/screenlocker/lockwindow.cpp 147853b 
> 
> Diff: http://git.reviewboard.kde.org/r/108585/diff/
> 
> 
> Testing
> -------
> 
> recompiled _all_ ksmserver, logged out, in, locked the screen, updated the screen \
> geometry ("arrrgghhh... geeezzz... goddamnfuckinghdmiinthedark"), killed the \
> gretter (noticed that i could have simply xrandr'd the geometry from VT1 as well - \
> "blast!") 
> everything is nicely black (with compositing)
> 
> 
> Thanks,
> 
> Thomas Lübking
> 
> 


[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/108585/">http://git.reviewboard.kde.org/r/108585/</a>
  </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On January 28th, 2013, 11:47 a.m. UTC, <b>Aaron J. \
Seigo</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">this still does not work p[roperly. now i&#39;m getting a (too small) \
black rectangle on the screen around which i can see the rest of my desktop and the \
locker window is still not being shown. investigating now.</pre>  </blockquote>




 <p>On January 28th, 2013, 12:24 p.m. UTC, <b>Thomas Lübking</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">See above, try setting \
&quot;p.setColor(backgroundRole(), Qt::black);&quot; The paintEvent is worthless \
(right after init) - if the window is for some reason considered ARGB, it will be \
translucent with the formerly black painted area.</pre>  </blockquote>





 <p>On January 28th, 2013, 1:52 p.m. UTC, <b>Aaron J. Seigo</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">ok, this does work \
better. now i get a fully black screen .. but also i get a fully black screen ;) the \
greeter window is stilling getting the input, so evidently has focus, but it \
isn&#39;t raised. i&#39;ll see what can be done about that next.</pre>  </blockquote>





 <p>On January 28th, 2013, 1:54 p.m. UTC, <b>Aaron J. Seigo</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">well, THAT was easy. \
simply calling raise() on the view in greeterapp.cpp fixed all that.

i also took the opportunity to get rid of kephal .. i&#39;ll post a review request \
momentarily.</pre>  </blockquote>








</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">ok, check out \
https://git.reviewboard.kde.org/r/108643/ ... it does indeed work as expected w/out \
PaintOutsidePaintEvent, but with the correct backgroundRole as thomas noted, and with \
an extra call to raise() the QML UI (otherwise it just gets a black screen).</pre> \
<br />










<p>- Aaron J.</p>


<br />
<p>On January 25th, 2013, 11:04 p.m. UTC, Thomas Lübking wrote:</p>






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

<div>Review request for kwin, Plasma, Aaron J. Seigo, and Martin Gräßlin.</div>
<div>By Thomas Lübking.</div>


<p style="color: grey;"><i>Updated Jan. 25, 2013, 11:04 p.m.</i></p>






<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;">Actually  was wrong, we do get the signals from QDesktopWidget - so the \
fix is pretty trivial ;-)

Reg. bug #313835 i assume you&#39;re using some plasma screenlocker with widgets on \
it (which has a translucent background when compositing is active and relies on the \
lockwindow to cover the screen)

I&#39;ve not checked such screen&quot;saver&quot; and have to admit, i&#39;d not even \
know where to check for the sources.</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;">recompiled _all_ ksmserver, logged out, in, locked the screen, updated \
the screen geometry (&quot;arrrgghhh... geeezzz... \
goddamnfuckinghdmiinthedark&quot;), killed the gretter (noticed that i could have \
simply xrandr&#39;d the geometry from VT1 as well - &quot;blast!&quot;)

everything is nicely black (with compositing)</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=313835">313835</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>ksmserver/screenlocker/lockwindow.h <span style="color: \
grey">(5cbc769)</span></li>

 <li>ksmserver/screenlocker/lockwindow.cpp <span style="color: \
grey">(147853b)</span></li>

</ul>

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







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








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



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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