static QWaylandDisplay *display = 0;
-static int dummyUpdate(uint32_t, void *)
-{
- return 0;
-}
-
QWaylandDisplay::QWaylandDisplay(void)
: mLastKeyboardFocusInputDevice(0)
, mDndSelectionHandler(0)
wl_display_add_global_listener(mDisplay, QWaylandDisplay::displayHandleGlobal, this);
- mFd = wl_display_get_fd(mDisplay, dummyUpdate, 0);
+ mFd = wl_display_get_fd(mDisplay, 0, 0);
#ifdef QTWAYLAND_EXPERIMENTAL_THREAD_SUPPORT
mWritableNotificationFd = wl_display_get_write_notification_fd(mDisplay);
wl_display_add_global_listener(display, handleGlobal, this);
- fd = wl_display_get_fd(display, sourceUpdate, 0);
+ fd = wl_display_get_fd(display, 0, 0);
QSocketNotifier *readNotifier = new QSocketNotifier(fd, QSocketNotifier::Read, this);
connect(readNotifier, SIGNAL(activated(int)), this, SLOT(readEvents()));
resolve(data)->handleGlobal(id, QByteArray(interface));
}
-int MockClient::sourceUpdate(uint32_t, void *)
-{
- return 0;
-}
-
void MockClient::outputGeometryEvent(void *data, wl_output *,
int32_t x, int32_t y,
int32_t width, int32_t height,