[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/tasks
From: Marco Martin <notmart () gmail ! com>
Date: 2009-05-03 11:55:27
Message-ID: 1241351727.548355.23676.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 962788 by mart:
unbreak highlight windows effect
M +13 -10 abstracttaskitem.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp #962787:962788
@@ -289,9 +289,11 @@
#ifdef Q_WS_X11
Display *dpy = QX11Info::display();
- const WId rootWin = QX11Info::appRootWindow();
- Atom atom = XInternAtom(dpy, "_KDE_WINDOW_HIGHLIGHT", False);
- XDeleteProperty(dpy, rootWin, atom);
+ if (m_applet->view()) {
+ const WId winId = m_applet->view()->winId();
+ Atom atom = XInternAtom(dpy, "_KDE_WINDOW_HIGHLIGHT", False);
+ XDeleteProperty(dpy, winId, atom);
+ }
#endif
}
@@ -391,19 +393,20 @@
}
const int numWindows = windows.count();
- QVarLengthArray<long, 1024> data(1 + numWindows);
- data[0] = numWindows;
+ QVarLengthArray<long, 1024> data(numWindows);
kDebug() << "setting for" << numWindows;
for (int i = 0; i < numWindows; ++i) {
- data[i + 1] = windows.at(i)->task()->window();
+ data[i] = windows.at(i)->task()->window();
}
Display *dpy = QX11Info::display();
- const WId rootWin = QX11Info::appRootWindow();
- Atom atom = XInternAtom(dpy, "_KDE_WINDOW_HIGHLIGHT", False);
- XChangeProperty(dpy, rootWin, atom, atom, 32, PropModeReplace,
- reinterpret_cast<unsigned char *>(data.data()), data.size());
+ if (m_applet->view()) {
+ const WId winId = m_applet->view()->winId();
+ Atom atom = XInternAtom(dpy, "_KDE_WINDOW_HIGHLIGHT", False);
+ XChangeProperty(dpy, winId, atom, atom, 32, PropModeReplace,
+ reinterpret_cast<unsigned char *>(data.data()), data.size());
+ }
#endif
killTimer(m_hoverEffectTimerId);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic