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

List:       kde-devel
Subject:    Re: Determining which screen a full screen window is on
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2009-11-04 9:11:34
Message-ID: 200911041011.35049.l.lunak () suse ! cz
[Download RAW message or body]

On Tuesday 03 of November 2009, David Jarvie wrote:
> On a multi-head system, is there any easy way to determine which screen a
> random full-screen window resides on?
>
> QDesktopWidget is the only Qt/KDE class I can find which gives
> multi-screen information, but it only returns the screen number for a
> QWidget or a QPoint. I need to be able to find this information for ANY
> full-screen window - not just Qt ones - so the QWidget variant is no use.
> And KWindowInfo::geometry() and KWindowInfo::frameGeometry() both return a
> null QRect for a full screen window, so the QPoint variant doesn't work
> either.

 Then those KWindowInfo functions have a bug, which I consider a bit unlikely, 
or you are doing something wrong. Presumably you just need to watch the 
kWarning() on stderr and do what it says?

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak@suse.cz , l.lunak@kde.org
Lihovarska 1060/12   tel: +420 284 084 672
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http://www.suse.cz
 
>> 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