[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: Michael Pyne <mpyne () kde ! org>
Date: 2009-11-04 1:07:21
Message-ID: 200911032007.22073.mpyne () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Tuesday 03 November 2009 09:39:05 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.
>
> 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.
The NET series in kdelibs might be what you want. (Like NET::WinInfo, etc.)
The API docs are hard to find though, you may have to Google it. :-/
Regards,
- Michael Pyne
["signature.asc" (application/pgp-signature)]
>> 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