Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed typos #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sample-config/superkbrc.bigsample
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FEEDBACK_HANDLER "notify-send --urgency normal -t 2000 --icon='gtk-info' Superkb
# fixed welcome message on start, configured on /etc/superkbrc, but the user
# may override it with any other command, including an empty string.
#
#Example vlaues:
#Example values:
# WELCOME_CMD "notify-send 'Welcome to Superkb'"
# WELCOME_CMD "touch ~/.superkb-start-time"
# WELCOME_CMD ""
Expand All @@ -15,7 +15,7 @@ WELCOME_CMD "notify-send --urgency normal -t 5000 --icon='gtk-info' 'Welcome to
#DELAY: Time (in seconds) the Super key must be pressed before showing
# the on-screen hints.
#
#Example vlaues:
#Example values:
# DELAY 0.5
# DELAY 1
#
Expand Down Expand Up @@ -126,7 +126,7 @@ SUPERKEY_RELEASE_CANCELS 0
#and can be turned off by setting this value to 0.
#
#This value affects the rest of the configuration file and thus must be present
#before any KEY directive disired to be affected.
#before any KEY directive desired to be affected.
#
#Example values:
# FEEDBACK_STRINGS_AUTOQUOTE 1
Expand Down
6 changes: 3 additions & 3 deletions superkb.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void clear_pressed_key_stack() {
*
* RETURNS == 0 ? Timed out before getting an event.
* RETURNS < 0 ? Error. Useful to get EINTR. Return set to -errno.
* RETURNS > 0 ? Event catched.
* RETURNS > 0 ? Event caught.
*/
int
XNextEventWithTimeout(Display * display, XEvent * event_return,
Expand Down Expand Up @@ -324,8 +324,8 @@ void superkb_start(superkb_p this)

memset(&ev, 0, sizeof(ev));

/* Decide wether to use XNextEvent or my own XNextEventWithTimeout
* and do accordingly. If WithTimeout was used, substract the
/* Decide whether to use XNextEvent or my own XNextEventWithTimeout
* and do accordingly. If WithTimeout was used, subtract the
* time actually elapsed to the set timeout. */

for (i = 0; i < to_n; i++) {
Expand Down