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

List:       kwin
Subject:    Re: Review Request 115334: Make KWin place the OSD
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2014-01-29 17:39:05
Message-ID: 20140129173905.2191.54628 () probe ! kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On Jan. 29, 2014, 3:30 p.m., Thomas Lübking wrote:
> > kwin/manage.cpp, line 380
> > <https://git.reviewboard.kde.org/r/115334/diff/2/?file=240991#file240991line380>
> > 
> > i don't think this is required at all - area is initially determined for the \
> > screen, defaulting to active and only overruled by startupinfo or a window rule. \
> > instead this makes it impossible to control the screen by user rule for all \
> > notifications.
> 
> Martin Klapetek wrote:
> Depends if we want to let the user override this. With the exception of the \
> explicit screens passed from some clients, which I intended to work on later, \
> possibly changing this^ in the process. 
> And actually you are correct; it does seem to default to active. So I'll just \
> completely remove this block for now.

The user is enacted to always "know better" by the rules, there's no discrimination - \
it's his final word. Ie. if the user says "that annoying notification shall please \
ever appear on screen #1", he's probably a good reason to do so and therefore is \
right.


- Thomas


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115334/#review48546
-----------------------------------------------------------


On Jan. 29, 2014, 4:27 p.m., Martin Klapetek wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115334/
> -----------------------------------------------------------
> 
> (Updated Jan. 29, 2014, 4:27 p.m.)
> 
> 
> Review request for kwin.
> 
> 
> Repository: kde-workspace
> 
> 
> Description
> -------
> 
> Adds a method for placing the OSD window. Currently it simply places it at the \
> lower 2/3 of the screen, has no support yet for staying at a particular screen \
> (like brightness OSD always staying at the controlled screen). Martin said he does \
> not want that in KWin, which I understand, but I'm unsure how else to do it if KWin \
> will do the positioning. Ideas? 
> 
> Diffs
> -----
> 
> kwin/placement.h 7c943ff 
> kwin/placement.cpp 8534f81 
> 
> Diff: https://git.reviewboard.kde.org/r/115334/diff/
> 
> 
> Testing
> -------
> 
> OSD appears where it should.
> 
> 
> Thanks,
> 
> Martin Klapetek
> 
> 


[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="https://git.reviewboard.kde.org/r/115334/">https://git.reviewboard.kde.org/r/115334/</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 29th, 2014, 3:30 p.m. UTC, <b>Thomas \
Lübking</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  



<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;">  <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;">  <a \
href="https://git.reviewboard.kde.org/r/115334/diff/2/?file=240991#file240991line380" \
style="color: black; font-weight: bold; text-decoration: \
underline;">kwin/manage.cpp</a>  <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">bool \
Client::manage(xcb_window_t w, bool isMapped)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th>  <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>  <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">380</font></th>  <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span \
class="n">area</span> <span class="o">=</span> <span class="n">workspace</span><span \
class="p">()</span><span class="o">-&gt;</span><span class="n">clientArea</span><span \
class="p">(</span><span class="n">PlacementArea</span><span class="p">,</span> <span \
class="n">screens</span><span class="p">()</span><span class="o">-&gt;</span><span \
class="n">current</span><span class="p">(),</span> <span \
class="n">desktop</span><span class="p">());</span></pre></td>  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">i don&#39;t think this \
is required at all - area is initially determined for the screen, defaulting to \
active and only overruled by startupinfo or a window rule. instead this makes it \
impossible to control the screen by user rule for all notifications.</pre>  \
</blockquote>



 <p>On January 29th, 2014, 3:48 p.m. UTC, <b>Martin Klapetek</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;">Depends if we want to \
let the user override this. With the exception of the explicit screens passed from \
some clients, which I intended to work on later, possibly changing this^ in the \
process.

And actually you are correct; it does seem to default to active. So I&#39;ll just \
completely remove this block for now.</pre>  </blockquote>







</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">The user is \
enacted to always &quot;know better&quot; by the rules, there&#39;s no discrimination \
- it&#39;s his final word. Ie. if the user says &quot;that annoying notification \
shall please ever appear on screen #1&quot;, he&#39;s probably a good reason to do so \
and therefore is right.</pre> <br />




<p>- Thomas</p>


<br />
<p>On January 29th, 2014, 4:27 p.m. UTC, Martin Klapetek wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('https://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.</div>
<div>By Martin Klapetek.</div>


<p style="color: grey;"><i>Updated Jan. 29, 2014, 4:27 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kde-workspace
</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;">Adds a method for placing the OSD window. Currently it simply places it \
at the lower 2/3 of the screen, has no support yet for staying at a particular screen \
(like brightness OSD always staying at the controlled screen). Martin said he does \
not want that in KWin, which I understand, but I&#39;m unsure how else to do it if \
KWin will do the positioning. Ideas?</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;">OSD appears where it should.</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>kwin/placement.h <span style="color: grey">(7c943ff)</span></li>

 <li>kwin/placement.cpp <span style="color: grey">(8534f81)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/115334/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