"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/synergy/unix/SynergyXkbKeyboard.cpp" between
synergy-core-1.14.4.37-stable.tar.gz and synergy-core-1.14.5.13-stable.tar.gz

About: Synergy is software for sharing one mouse and one keyboard between multiple computers on your desk allowing to seamlessly move the mouse cursor from one screen to another (works on Linux, Windows and Mac OS X). Synergy 1.

SynergyXkbKeyboard.cpp  (synergy-core-1.14.4.37-stable):SynergyXkbKeyboard.cpp  (synergy-core-1.14.5.13-stable)
skipping to change at line 40 skipping to change at line 40
{ {
using XkbDisplay = std::unique_ptr<Display, decltype(&XCloseDisplay)>; using XkbDisplay = std::unique_ptr<Display, decltype(&XCloseDisplay)>;
XkbDisplay display(XkbOpenDisplay(nullptr, nullptr, nullptr, nullptr, nullpt r, nullptr), &XCloseDisplay); XkbDisplay display(XkbOpenDisplay(nullptr, nullptr, nullptr, nullptr, nullpt r, nullptr), &XCloseDisplay);
if (display) { if (display) {
if (!XkbRF_GetNamesProp(display.get(), nullptr, &m_data)) { if (!XkbRF_GetNamesProp(display.get(), nullptr, &m_data)) {
LOG((CLOG_WARN "Error reading keyboard layouts")); LOG((CLOG_WARN "Error reading keyboard layouts"));
} }
} }
else { else {
LOG((CLOG_WARN "Can't open Xkb diaplay during reading languages")); LOG((CLOG_WARN "Can't open Xkb display during reading languages"));
} }
} }
const char* SynergyXkbKeyboard::getLayout() const const char* SynergyXkbKeyboard::getLayout() const
{ {
return m_data.layout ? m_data.layout : "us"; return m_data.layout ? m_data.layout : "us";
} }
const char* SynergyXkbKeyboard::getVariant() const const char* SynergyXkbKeyboard::getVariant() const
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)