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

List:       kwin
Subject:    Re: Notes from "New OSD in Plasma 2"
From:       Martin Klapetek <martin.klapetek () gmail ! com>
Date:       2014-01-20 16:29:18
Message-ID: CAPLgePqPsVK4pCExMvC3uvrTc=083_XbfZ=geg3zQ-jm88PcsA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sat, Jan 18, 2014 at 3:55 PM, Thomas Lübking
<thomas.luebking@gmail.com>wrote:

>
> KWin cannot take care of moving it if plasma determines the position, but
> i think that the client requesting the OSD should determine the
> preferred/requried screen (see brightness example for why) and KWin the
> position.
>

Currently Plasma does not determine the position afaics, just the size, the
placing looks like it's done by kwin. How would the positioning work inside
kwin and where? I now set the NET::Notification window type on the OSD,
would there be some special "if (windowType == NET::Notification) {
position stuff; } ? I'd like to play around with that for a bit.


> KWin can then avoid window collisions (as is now, in "smart", maybe with a
> center preference) and esp. fullscreen windows in the multiscreen case (if
> the OSD doesn't care), resp. we can allow a particular placing for OSDs
> (what could more or less be a simplified config for a window rule on
> screen/placing/position)
> "Smart" placement is typically not a client job.
>

+1


> Most important (from client side) about this window type should be fully
> input shaped ("output only") and denying input focus (latter "faking"
> override_redirect)
> We cannot enforce either from KWin's side if we're re-using an existing
> type.
>

Done now.


> OT about flash: minitube.
>

Btw does it also handle when you click a youtube link you got from someone
(IM, email etc)?

Cheers
-- 
Martin Klapetek | KDE Developer

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 18, 2014 \
at 3:55 PM, Thomas Lübking <span dir="ltr">&lt;<a \
href="mailto:thomas.luebking@gmail.com" \
target="_blank">thomas.luebking@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="im"><br></div> KWin cannot take care of moving it \
if plasma determines the position, but i think that the client requesting the OSD \
should determine the preferred/requried screen (see brightness example for why) and \
KWin the position.<br>

</blockquote><div><br></div><div>Currently Plasma does not determine the position \
afaics, just the size, the placing looks like it&#39;s done by kwin. How would the \
positioning work inside kwin and where? I now set the NET::Notification window type \
on the OSD, would there be some special &quot;if (windowType == NET::Notification) { \
position stuff; } ? I&#39;d like to play around with that for a bit.</div>

<div>  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> KWin can then avoid window collisions (as is now, in \
&quot;smart&quot;, maybe with a center preference) and esp. fullscreen windows in the \
multiscreen case (if the OSD doesn&#39;t care), resp. we can allow a particular \
placing for OSDs (what could more or less be a simplified config for a window rule on \
screen/placing/position)<br>


&quot;Smart&quot; placement is typically not a client \
job.<br></blockquote><div><br></div><div>+1</div><div>  </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Most important (from client side) about this window type \
should be fully input shaped (&quot;output only&quot;) and denying input focus \
(latter &quot;faking&quot; override_redirect)<br> We cannot enforce either from \
KWin&#39;s side if we&#39;re re-using an existing \
type.<br></blockquote><div><br></div><div>Done now.</div><div>  </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">


OT about flash: minitube.<br></blockquote><div><br></div><div>Btw does it also handle \
when you click a youtube link you got from someone (IM, email \
etc)?</div><div><br></div><div>Cheers</div></div>-- <br><div><span \
style="color:rgb(102,102,102)">Martin Klapetek | KDE  Developer</span></div>


</div></div>



_______________________________________________
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