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

List:       kde-panel-devel
Subject:    Re: popupApplet and window focus
From:       Alexis_Ménard <menard () kde ! org>
Date:       2009-06-01 10:47:35
Message-ID: 81941aea0906010347kdd4ee36oea80a09386da25e7 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


A popup take by definition the focus in Qt...That's how it is... Since a
virtual keyboard is a particular use case, as i comment let popup applet
neutral and set the flag you need on it in plasmaboard.

2009/5/25 Bj=F6rn Ruberg <bjoern@ruberg-wegener.de>

> On Montag 25 Mai 2009, you wrote:
> > On Monday 25 May 2009, Bj=F6rn Ruberg wrote:
> > > >> First issue:
> > > >> Plasmaboard uses the class PopupApplet. When clicking on the icon,
> the
> > > >> keyboard appears. This keyboard must stay unfocused! So I used the
> > > >> method setPassivePopup(true). That worked great. But when I upgrad=
ed
> > > >> my working machine from Fedora 10 to Fedora 11 Preview it stopped
> > > >> working. Since then the opening keyboard steals focus from the
> window
> > > >> and is useless. This may be a bug invented in qt-4.5 or kde-4.2.2 =
.
> > > >> setPasivePopup is rarely used, so it is possible that no one
> noticed.
> > > >
> > > >well, it's more like "it's totally cool for popups to have focus" ..=
.
> > > > we'll need some work-around for this for Plasmaboard. either that o=
r
> > > > else Plasmaboard will have to provide and manage it's own popup
> instead
> > > > of relying on PopupApplet for this ....
> > >
> > > Sorry, didn't got that completly.
> > > The passive popups worked already. "Suddenly" they are not working.
> >
> > mmmmm.. define "not working"; they changed a bit in how they work, but
> that
> > was to fix other issues. passive doesn't mean "can't get focus"
>
>
> Okay. "not working" means it steals focus from the last window.
>
>
> > > Please help me at least with issue one. I think it's quite important =
to
> > > have a working virtual keyboard for KDE when 4.3 comes out. Cheap
> >
> > i wonder if it would be possible to track the last-focused window and
> just
> > send x events directly to it.
>
>
> Probably we would find a way within kwin. But it must work with plasma an=
d
> other window managers, too. So my way is the bullet proof and always
> working
> one.
>
>
> > but yes, otherwise .. hm ... i think that the
> > keyboard would need to handle it's own popup window and ensure it never
> > gets focus. putting that into passive popup as a general case situation
> > will screw up other widgets that do need focus; perhaps we can fold it
> into
> > popupapplet for 4.4 if there's a general need for it.
>
>
> Well, what about a "setVeryPassivePopup"-method?
>
>
> But before I put the work into investigation how to write my own popup
> (probably I just need to subclass and set some window-flag?), the questio=
n
> remains why setPassivePopup suddenly changed its behaviour - or why its
> behaviour is different between Fedora and Ubuntu.
>
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>

[Attachment #5 (text/html)]

A popup take by definition the focus in Qt...That&#39;s how it is... Since a virtual \
keyboard is a particular use case, as i comment let popup applet neutral and set the \
flag you need on it in plasmaboard.<br><br><div class="gmail_quote"> 2009/5/25 Björn \
Ruberg <span dir="ltr">&lt;<a \
href="mailto:bjoern@ruberg-wegener.de">bjoern@ruberg-wegener.de</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div style="font-family: &#39;DejaVu Sans&#39;; \
font-size: 10pt; font-weight: 400; font-style: normal;"><div class="im">On Montag 25 \
Mai 2009, you wrote:<br> &gt; On Monday 25 May 2009, Björn Ruberg wrote:<br>
&gt; &gt; &gt;&gt; First issue:<br>
&gt; &gt; &gt;&gt; Plasmaboard uses the class PopupApplet. When clicking on the icon, \
the<br> &gt; &gt; &gt;&gt; keyboard appears. This keyboard must stay unfocused! So I \
used the<br> &gt; &gt; &gt;&gt; method setPassivePopup(true). That worked great. But \
when I upgraded<br> &gt; &gt; &gt;&gt; my working machine from Fedora 10 to Fedora 11 \
Preview it stopped<br> &gt; &gt; &gt;&gt; working. Since then the opening keyboard \
steals focus from the window<br> &gt; &gt; &gt;&gt; and is useless. This may be a bug \
invented in qt-4.5 or kde-4.2.2 .<br> &gt; &gt; &gt;&gt; setPasivePopup is rarely \
used, so it is possible that no one noticed.<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt;well, it&#39;s more like &quot;it&#39;s totally cool for popups to have \
focus&quot; ...<br> &gt; &gt; &gt; we&#39;ll need some work-around for this for \
Plasmaboard. either that or<br> &gt; &gt; &gt; else Plasmaboard will have to provide \
and manage it&#39;s own popup instead<br> &gt; &gt; &gt; of relying on PopupApplet \
for this ....<br> &gt; &gt;<br>
&gt; &gt; Sorry, didn&#39;t got that completly.<br>
&gt; &gt; The passive popups worked already. &quot;Suddenly&quot; they are not \
working.<br> &gt;<br>
&gt; mmmmm.. define &quot;not working&quot;; they changed a bit in how they work, but \
that<br> &gt; was to fix other issues. passive doesn&#39;t mean &quot;can&#39;t get \
focus&quot;<br> <p style="margin: 0px; text-indent: 0px;"><br></p></div>Okay. \
&quot;not working&quot; means it steals focus from the last window.<div \
class="im"><br> <p style="margin: 0px; text-indent: 0px;"><br></p>&gt; &gt; Please \
help me at least with issue one. I think it&#39;s quite important to<br> &gt; &gt; \
have a working virtual keyboard for KDE when 4.3 comes out. Cheap<br> &gt;<br>
&gt; i wonder if it would be possible to track the last-focused window and just<br>
&gt; send x events directly to it. <br>
<p style="margin: 0px; text-indent: 0px;"><br></p></div>Probably we would find a way \
within kwin. But it must work with plasma and <br> other window managers, too. So my \
way is the bullet proof and always working <br> one.<div class="im"><br>
<p style="margin: 0px; text-indent: 0px;"><br></p>&gt; but yes, otherwise .. hm ... i \
think that the<br> &gt; keyboard would need to handle it&#39;s own popup window and \
ensure it never<br> &gt; gets focus. putting that into passive popup as a general \
case situation<br> &gt; will screw up other widgets that do need focus; perhaps we \
can fold it into<br> &gt; popupapplet for 4.4 if there&#39;s a general need for \
it.<br> <p style="margin: 0px; text-indent: 0px;"><br></p></div>Well, what about a \
&quot;setVeryPassivePopup&quot;-method? <br> <p style="margin: 0px; text-indent: \
0px;"><br></p>But before I put the work into investigation how to write my own popup \
<br> (probably I just need to subclass and set some window-flag?), the question <br>
remains why setPassivePopup suddenly changed its behaviour - or why its <br>
behaviour is different between Fedora and Ubuntu.<br>
<p style="margin: 0px; text-indent: \
0px;"><br></p></div><br>_______________________________________________<br> \
Plasma-devel mailing list<br> <a \
href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br> <a \
href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br>



_______________________________________________
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