[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdemultimedia/noatun/library
From: Benjamin Reed <ranger () befunk ! com>
Date: 2007-04-07 1:45:47
Message-ID: 1175910347.340278.26371.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 651223 by reed:
WindowInfo is not portable to non-X11
M +4 -0 plugininterfaces.cpp
--- trunk/KDE/kdemultimedia/noatun/library/plugininterfaces.cpp #651222:651223
@@ -136,12 +136,14 @@
bool PlaylistInterfaceGeneric::listVisible()
{
+#ifdef Q_WS_X11
QWidget *w = mainWindow();
if (w)
{
KWM::WindowInfo info(w->winId(), NET::WMState | NET::WMDesktop, 0);
return !(info.hasState(NET::Shaded) || info.hasState(NET::Hidden) || !info.valid() \
|| !info.isOnCurrentDesktop()); }
+#endif
return false;
}
@@ -151,10 +153,12 @@
QWidget *w = mainWindow();
if (w)
{
+#ifdef Q_WS_X11
KWM::WindowInfo info(w->winId(), NET::WMDesktop, 0);
// move to current desktop
if (!info.onAllDesktops() && !info.isOnCurrentDesktop())
KWM::setOnDesktop(w->winId(), KWM::currentDesktop());
+#endif
w->show();
if (w->isMinimized())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic