summaryrefslogtreecommitdiff
path: root/src/Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Manager.cpp')
-rw-r--r--src/Manager.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Manager.cpp b/src/Manager.cpp
index 59e55bc..4096e9a 100644
--- a/src/Manager.cpp
+++ b/src/Manager.cpp
@@ -133,6 +133,18 @@ void Manager::initXi()
{
ERR("%s\n", e->message.c_str());
}
+ }
+ if ((currDevice->use & IsXExtensionKeyboard))
+ {
+ try
+ {
+ KeyboardDevice *k = new KeyboardDevice(currDevice, x11, this);
+ keyboards.push_back(k);
+ dock->appendKeyboard(k);
+ } catch (DeviceError* e)
+ {
+ ERR("%s\n", e->message.c_str());
+ }
}
}
@@ -752,6 +764,18 @@ void Manager::handlePresenceNotify(XDevicePresenceNotifyEvent* ev)
}
}
+ if (current->use & IsXExtensionKeyboard)
+ {
+ try
+ {
+ KeyboardDevice *k = new KeyboardDevice(current, x11, this);
+ keyboards.push_back(k);
+ } catch (DeviceError* e)
+ {
+ ERR("%s\n", e->message.c_str());
+ }
+ }
+
}
}