Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/x11/xlibbackend.cpp
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Line(s) | 260 | { | |||
---|---|---|---|---|---|
286 | } | 286 | } | ||
287 | 287 | | |||
288 | return list; | 288 | return list; | ||
289 | } | 289 | } | ||
290 | 290 | | |||
291 | void XlibBackend::watchForEvents(bool keyboard) | 291 | void XlibBackend::watchForEvents(bool keyboard) | ||
292 | { | 292 | { | ||
293 | if (!m_notifications) { | 293 | if (!m_notifications) { | ||
294 | m_notifications.reset(new XlibNotifications(m_display.data(), m_device ? m_device->deviceId() : XIAllDevices)); | 294 | m_notifications.reset(new XlibNotifications(m_device ? m_device->deviceId() : XIAllDevices)); | ||
295 | connect(m_notifications.data(), SIGNAL(devicePlugged(int)), | 295 | connect(m_notifications.data(), SIGNAL(devicePlugged(int)), | ||
296 | SLOT(devicePlugged(int))); | 296 | SLOT(devicePlugged(int))); | ||
297 | connect(m_notifications.data(), SIGNAL(touchpadDetached()), | 297 | connect(m_notifications.data(), SIGNAL(touchpadDetached()), | ||
298 | SLOT(touchpadDetached())); | 298 | SLOT(touchpadDetached())); | ||
299 | connect(m_notifications.data(), SIGNAL(propertyChanged(xcb_atom_t)), | 299 | connect(m_notifications.data(), SIGNAL(propertyChanged(xcb_atom_t)), | ||
300 | SLOT(propertyChanged(xcb_atom_t))); | 300 | SLOT(propertyChanged(xcb_atom_t))); | ||
301 | } | 301 | } | ||
302 | 302 | | |||
Show All 15 Lines |