Skip to content

Commit

Permalink
3rd layout
Browse files Browse the repository at this point in the history
  • Loading branch information
liaonau committed Jan 17, 2021
1 parent 4e02f1e commit 9c977ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PKGS = x11

INCS := $(shell pkg-config --cflags $(PKGS)) -I./
CFLAGS := -std=gnu99 -ggdb -W -Wall -Wextra $(INCS) $(CFLAGS)
CFLAGS := -std=gnu11 -ggdb -W -Wall -Wextra $(INCS) $(CFLAGS)

LIBS := $(shell pkg-config --libs $(PKGS))
LDFLAGS := $(LIBS) $(LDFLAGS) -Wl,--export-dynamic
Expand Down
8 changes: 4 additions & 4 deletions emxkb.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ int send_key_to_emacs(Display *display, int window_id, int group)
{
case 0:
event.state = Mod4Mask;
/* event.keycode = XKeysymToKeycode(display, XStringToKeysym("F31")); */
break;
case 1:
event.state = Mod3Mask;
/* event.keycode = XKeysymToKeycode(display, XStringToKeysym("F32")); */
break;
case 2:
event.state = Mod4Mask & Mod3Mask;
break;
default:
event.state = Mod4Mask;
/* event.keycode = XKeysymToKeycode(display, XStringToKeysym("F31")); */
break;
}

Expand Down Expand Up @@ -163,7 +163,7 @@ int lock_group(int window_id, int group)
XSetInputFocus(xkb_display, window_id, RevertToParent, CurrentTime);
XSync(xkb_display, False);
}
if (!XkbLockGroup(xkb_display, XkbUseCoreKbd, abs(group % 4)))
if (!XkbLockGroup(xkb_display, XkbUseCoreKbd, abs(group)))
return fprintf_return_error(False, "lock_group(): Can't lock group");

XSync(xkb_display, False);
Expand Down

0 comments on commit 9c977ae

Please sign in to comment.