Comments (2)
I would also add this
diff --git a/XKbSwitchApi.cpp b/XKbSwitchApi.cpp
index 821bfd7..febcc26 100644
--- a/XKbSwitchApi.cpp
+++ b/XKbSwitchApi.cpp
@@ -73,6 +73,7 @@ namespace
return symNames;
}
+ loaded = true;
xkb->build_layout(symNames);
return symNames;
}
to make the code clean, though this does not affect anything because vim's libcall()
dlopens/dlcloses on each call.
@zoresvit, could you update the PR?
from xkb-switch.
This small patch must fix this (original idea from here, see how function accomodateGroupXkb()
is used there after XkbLockGroup()
)
diff --git a/XKeyboard.cpp b/XKeyboard.cpp
index e3ce64b..0bbcb9f 100644
--- a/XKeyboard.cpp
+++ b/XKeyboard.cpp
@@ -128,6 +128,7 @@ void XKeyboard::set_group(int groupNum)
{
Bool result = XkbLockGroup(_display, _deviceId, groupNum);
CHECK(result == True);
+ (void) get_group();
}
from xkb-switch.
Related Issues (20)
- Can't build the program on ubuntu 18.04 HOT 4
- Update version in ppa:atareao/atareao repository HOT 1
- branch test? HOT 1
- Group vs layout disambiguation HOT 1
- Doesn't recognise second group, causing range check failure HOT 12
- man broken by default with recent version HOT 3
- Add option to print layouts in uppercase HOT 2
- no apt packages for Ubuntu 20.04.1 LTS HOT 1
- change compression tool from gz to gzip HOT 8
- Can't change to any layout HOT 4
- Use standard C procedures for handling command-line arguments HOT 10
- Integrate GNU gettext
- Recent releases missing from github? HOT 2
- Manpage error: ignoring bogus filename HOT 2
- Can not change input method of fcitix via command 'xkb-switch -s' HOT 5
- Regolith i3
- Add ability to show current variant and current keyboard layout separately HOT 1
- Doesn't work with Wayland HOT 10
- Error while loading shared libraries HOT 6
- user local xkb configuration not recognized HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xkb-switch.