Changeset View
Changeset View
Standalone View
Standalone View
keyboard_layout.cpp
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | |||||
135 | void KeyboardLayout::switchToLayout(xkb_layout_index_t index) | 135 | void KeyboardLayout::switchToLayout(xkb_layout_index_t index) | ||
136 | { | 136 | { | ||
137 | m_xkb->switchToLayout(index); | 137 | m_xkb->switchToLayout(index); | ||
138 | checkLayoutChange(); | 138 | checkLayoutChange(); | ||
139 | } | 139 | } | ||
140 | 140 | | |||
141 | void KeyboardLayout::reconfigure() | 141 | void KeyboardLayout::reconfigure() | ||
142 | { | 142 | { | ||
143 | m_xkb->reconfigure(); | | |||
144 | if (m_config) { | 143 | if (m_config) { | ||
145 | m_config->reparseConfiguration(); | 144 | m_config->reparseConfiguration(); | ||
146 | } | 145 | } | ||
146 | m_xkb->reconfigure(); | ||||
147 | resetLayout(); | 147 | resetLayout(); | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | void KeyboardLayout::resetLayout() | 150 | void KeyboardLayout::resetLayout() | ||
151 | { | 151 | { | ||
152 | m_layout = m_xkb->currentLayout(); | 152 | m_layout = m_xkb->currentLayout(); | ||
153 | initNotifierItem(); | 153 | initNotifierItem(); | ||
154 | updateNotifier(); | 154 | updateNotifier(); | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |