[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Determining which screen a full screen window is on
From: "David Jarvie" <djarvie () kde ! org>
Date: 2009-11-03 14:39:05
Message-ID: 805c43a59599e3128f4a82c23e4ffc3c.squirrel () www ! sensical ! net
[Download RAW message or body]
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.
Are there any other library functions to give this information? I could
cobble something together based on how QDesktopWidget works, but it's not
ideal for maintainability, and could be fraught from the cross-platform
perspective also.
--
David Jarvie.
KDE developer.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm
>> 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