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

List:       pykde
Subject:    [PyKDE] Focus without window manager
From:       "Felipe Massia Pereira" <felipe () las ! ic ! unicamp ! br>
Date:       2006-11-27 11:51:51
Message-ID: 7e727d5c0611270351k13e4400bg439b8f6a4157a7f4 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Dear list,

we are developing an installer and it runs without window manager on a
livecd. The program has a main frame which fills up the entire X screen and
some times we open a simple dialog (modal, Yes/No). The problem is, when we
open a modal dialog, the focus follows mouse. Keyboard input should go to
this modal dialog but it follows mouse, unexpectedly being stealed by the
main frame (which is below the dialog). So the user must move the mouse
above the dialog for keys to work. Too bad...

Any ideas on how can I prevent focus to follow mouse?

I tried to use Xlib and disable some events with eventfilters and I tried to
overload focusInEvent for the main frame. I have no experience on this and I
had no success.

thanks in advance,
-- 
F.

[Attachment #5 (text/html)]

<span class="gmail_quote"></span>Dear list,<br><br>we are developing an installer and \
it runs without window manager on a livecd. The program has a main frame which fills \
up the entire X screen and some times we open a simple dialog (modal, Yes/No). The \
problem is, when we open a modal dialog, the focus follows mouse. Keyboard input \
should go to this modal dialog but it follows mouse, unexpectedly being stealed by \
the main frame (which is below the dialog). So the user must move the mouse above the \
dialog for keys to work. Too bad... <br><br>Any ideas on how can I prevent focus to \
follow mouse?<br><br>I tried to use Xlib and disable some events with eventfilters \
and I tried to overload focusInEvent for the main frame. I have no experience on this \
and I had no success. <br><br>thanks in advance,<br>-- <br><span class="sg">F.

</span><br clear="all"><br>



_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


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

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