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

List:       kde-panel-devel
Subject:    Re: Review Request: Fix panel controller width when running on
From:       Rafael_Fernández_López <ereslibre () kde ! org>
Date:       2011-04-30 0:48:22
Message-ID: 20110430004822.1196.99444 () 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/101254/
-----------------------------------------------------------

(Updated April 30, 2011, 12:48 a.m.)


Review request for Plasma.


Changes
-------

Typo on the xrandr command.


Summary (updated)
-------

I have multiple monitors (xrandr --output LVDS1 --auto --output VGA1 --prim=
ary --auto --right-of LVDS1). Left one: 1440x900, Right one: 1920x1080. The=
 plasma panel when I run such command takes as maximum size only a portion =
of my big screen. I usually dragged the panel to the top, and to the back a=
gain, having it resized to my screen width. This has been a very annoying b=
ehavior for me. Even restarting plasma the same behavior was being shown ag=
ain.

This patch fixes this situation. Basically, on the showEvent method we only=
 need to adapt the maximum size of the panel controller, for afterwards cal=
ling syncToLocation, which will trigger some calculations that will end up =
(with the maximum size properly set before) with the correct size for this =
panel.

Additionally, it has been needed to adapt the syncToLocation method because=
 of this change. With the values that were being set before (QWIDGETSIZE_MA=
X) when there was the need to update struts (this is, switching from horizo=
ntal to vertical [or reverse] layout), the panel controller got huge (full =
screen, except panel itself).

You can check the screenshots attached for visual information of the proble=
m.


Diffs
-----

  plasma/desktop/shell/panelcontroller.h 9e8297b =

  plasma/desktop/shell/panelcontroller.cpp 5e0dde1 =


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


Testing
-------

Restart plasma with single screen (OK)
Restart plasma with multiple screens (OK)
Run xrandr while on single screen with plasma running (OK)
Move panel around, from one edge to another, forcing to update struts (OK)


Screenshots
-----------

Plasma panel (before patch)
  http://git.reviewboard.kde.org/r/101254/s/144/
Plasma panel (after patch)
  http://git.reviewboard.kde.org/r/101254/s/145/


Thanks,

Rafael Fern=C3=A1ndez


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


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/media/rb/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 Plasma.</div>
<div>By Rafael Fernández López.</div>


<p style="color: grey;"><i>Updated April 30, 2011, 12:48 a.m.</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</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;">Typo on the xrandr command.</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description  \
(updated)</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;">I have multiple monitors (xrandr --output LVDS1 --auto --output VGA1 \
--primary --auto --right-of LVDS1). Left one: 1440x900, Right one: 1920x1080. The \
plasma panel when I run such command takes as maximum size only a portion of my big \
screen. I usually dragged the panel to the top, and to the back again, having it \
resized to my screen width. This has been a very annoying behavior for me. Even \
restarting plasma the same behavior was being shown again.

This patch fixes this situation. Basically, on the showEvent method we only need to \
adapt the maximum size of the panel controller, for afterwards calling \
syncToLocation, which will trigger some calculations that will end up (with the \
maximum size properly set before) with the correct size for this panel.

Additionally, it has been needed to adapt the syncToLocation method because of this \
change. With the values that were being set before (QWIDGETSIZE_MAX) when there was \
the need to update struts (this is, switching from horizontal to vertical [or \
reverse] layout), the panel controller got huge (full screen, except panel itself).

You can check the screenshots attached for visual information of the problem.</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;">Restart plasma with single screen (OK) Restart plasma with multiple \
screens (OK) Run xrandr while on single screen with plasma running (OK)
Move panel around, from one edge to another, forcing to update struts (OK)</pre>
  </td>
 </tr>
</table>




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

 <li>plasma/desktop/shell/panelcontroller.h <span style="color: \
grey">(9e8297b)</span></li>

 <li>plasma/desktop/shell/panelcontroller.cpp <span style="color: \
grey">(5e0dde1)</span></li>

</ul>

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



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

<div>

 <a href="http://git.reviewboard.kde.org/r/101254/s/144/"><img \
src="http://git.reviewboard.kde.org/media/uploaded/images/2011/04/30/plasma-panel_400x100.png" \
style="border: 1px black solid;" alt="Plasma panel (before patch)" /></a>

 <a href="http://git.reviewboard.kde.org/r/101254/s/145/"><img \
src="http://git.reviewboard.kde.org/media/uploaded/images/2011/04/30/plasma-panel-patch_400x100.png" \
style="border: 1px black solid;" alt="Plasma panel (after patch)" /></a>

</div>


  </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