From kde-devel Wed Nov 04 09:11:34 2009 From: Lubos Lunak Date: Wed, 04 Nov 2009 09:11:34 +0000 To: kde-devel Subject: Re: Determining which screen a full screen window is on Message-Id: <200911041011.35049.l.lunak () suse ! cz> X-MARC-Message: https://marc.info/?l=kde-devel&m=125732593911471 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 <<