summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-03-17 17:20:18 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-03-17 17:20:18 +0100
commit9c286d169106fa82857ad335875921b553c680a9 (patch)
tree17c04f95baa5d6da6ec495b82f2163fbd81ddc7c /src/screen.cpp
parent6d8be1b3ed77fb07fc4badfb0eb04fc9b0d10639 (diff)
downloadunity-window-decorator-9c286d169106fa82857ad335875921b553c680a9.tar.gz
unity-window-decorator-9c286d169106fa82857ad335875921b553c680a9.tar.bz2
Pass returned events to callback.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index cb0c084..8e09ab3 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -376,20 +376,6 @@ CompScreen::eraseValue (CompString key)
}
}
-short int
-PrivateScreen::watchFdEvents (CompWatchFdHandle handle)
-{
- std::list<CompWatchFd *>::iterator it;
- int i;
-
- for (it = watchFds.begin (), i = nWatchFds - 1; it != watchFds.end ();
- it++, i--)
- if ((*it)->handle == handle)
- return watchPollFds[i].revents;
-
- return 0;
-}
-
int
PrivateScreen::doPoll (int timeout)
{
@@ -405,7 +391,7 @@ PrivateScreen::doPoll (int timeout)
it++, i--)
{
if (watchPollFds[i].revents != 0 && (*it)->callBack)
- (*it)->callBack ();
+ (*it)->callBack (watchPollFds[i].revents);
}
}