diff options
author | Ken Moore <ken@ixsystems.com> | 2016-11-17 11:17:57 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-11-17 11:17:57 -0500 |
commit | 7a0a00fde86468ddf5d6877a96a3e23ed123bb0a (patch) | |
tree | 7419cd3bb2a6fe5e7c8435e2ce3939c08849235d /src-qt5/core | |
parent | Oops - make sure the LInput funcions are public and static (diff) | |
download | lumina-7a0a00fde86468ddf5d6877a96a3e23ed123bb0a.tar.gz lumina-7a0a00fde86468ddf5d6877a96a3e23ed123bb0a.tar.bz2 lumina-7a0a00fde86468ddf5d6877a96a3e23ed123bb0a.zip |
Get a bit more of the input device class working - using lumina-config for testing on the new "mouse" page (which is still disabled for the moment).
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/libLumina/LInputDevice.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/LInputDevice.cpp b/src-qt5/core/libLumina/LInputDevice.cpp index a760d19d..79f5c27f 100644 --- a/src-qt5/core/libLumina/LInputDevice.cpp +++ b/src-qt5/core/libLumina/LInputDevice.cpp @@ -69,17 +69,17 @@ QList<LInputDevice*> LInput::listDevices(){ xcb_input_list_input_devices_reply_t *reply = xcb_input_list_input_devices_reply(QX11Info::connection(), cookie, NULL); if(reply==0){ return devices; } //error - nothing returned //Use the iterator for going through the reply + //qDebug() << "Create iterator"; xcb_input_device_info_iterator_t iter = xcb_input_list_input_devices_devices_iterator(reply); //xcb_str_iterator_t nameiter = xcb_input_list_input_devices_names_iterator(reply); //Now step through the reply - QStringList info; while(iter.data != 0 ){ devices << new LInputDevice(iter.data->device_id, iter.data->device_use); - //qDebug() << "Input Device:" << iter.data->device_id; + //qDebug() << "Found Input Device:" << iter.data->device_id; //qDebug() << " - num_class_info:" << iter.data->num_class_info; - xcb_input_device_info_next(&iter); - //xcb_input_device_name_next(&nameiter); + if(iter.rem>0){ xcb_input_device_info_next(&iter); } + else{ break; } } //Free the reply (done with it) ::free(reply); |