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

List:       kde-devel
Subject:    Re: Forcing a window to appear on top
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2005-05-23 21:43:31
Message-ID: 200505232243.31955.lists () astrojar ! org ! uk
[Download RAW message or body]

On Monday 23 May 2005 12:54, Lubos Lunak wrote:
> On Monday 23 of May 2005 12:03, David Jarvie wrote:
> > KAlarm displays its message windows (derived from KMainWindow) using
> > NET::StaysOnTop to stay on top of all other windows. This works under
> > most circumstances, but not when the application main window (separately
> > derived from KMainWindow) is visible but does not have keyboard focus,
> > and the two windows overlap. Then, the message window appears behind the
> > main application window. (When the main application window has keyboard
> > focus, the message window appears on top of it, which is the correct
> > functioning.)
> >
> > How can the message window be forced on top when the main application
> > window doesn't have focus, and when the two windows overlap? The message
> > window is a top level widget (its parent widget is set to null). I tried
> > calling raise() and setActiveWindow() in the message window's
> > showEvent(), but that didn't make any difference. Calling lower() on the
> > main application window from the message window showEvent() did work, but
> > of course it lowered the main application window below other applications
> > as well, not just below the message window, so that's not an ideal
> > solution. Another solution is obviously to position the message window so
> > that it doesn't overlap the main application window, but there are
> > reasons why that is not always desirable.
>
>  Could this be bug #100762 by a chance?

I tried it out on KDE 3.3, and it worked properly there. So it may well be bug 
100762.

Cheers,
David.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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