aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-10 09:00:41 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-10 09:00:41 -0400
commit18f1bdb7769c341f73962b8e5af204262b542805 (patch)
treedd0073889c2fb6e3e92b4a47dea454a539ed742f
parentimprove variant support, and add tooltip (diff)
downloadfbxkb-18f1bdb7769c341f73962b8e5af204262b542805.tar.gz
fbxkb-18f1bdb7769c341f73962b8e5af204262b542805.tar.bz2
fbxkb-18f1bdb7769c341f73962b8e5af204262b542805.zip
swap left<-->middle click on tray icon
-rw-r--r--fbxkb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fbxkb.c b/fbxkb.c
index 3890fbb..651ac3c 100644
--- a/fbxkb.c
+++ b/fbxkb.c
@@ -170,7 +170,7 @@ app_menu_about(GtkWidget *widget, gpointer data)
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
- "fbxkb %s\nX11 Keyboard switcher\nAuthor: Anatoly Asviyan <aanatoly@users.sf.net>", version);
+ "fbxkb %s\nX11 Keyboard switcher\nOriginal author: Anatoly Asviyan <aanatoly@users.sf.net>\ncustomized for stackrpms by bgstack15", version);
/* Destroy the dialog when the user responds to it (e.g. clicks a button) */
g_signal_connect_swapped (about_dialog, "response",
G_CALLBACK (gtk_widget_hide),
@@ -213,13 +213,13 @@ void docklet_clicked(GtkWidget *button, GdkEventButton *event, void *data)
if (event->type != GDK_BUTTON_PRESS)
RET();
- if (event->button == 1) {
+ if (event->button == 2) {
int no;
no = (cur_group + 1) % ngroups;
DBG("no=%d\n", no);
XkbLockGroup(dpy, XkbUseCoreKbd, no);
- } else if (event->button == 2) {
+ } else if (event->button == 1) {
gtk_menu_popup(GTK_MENU(flag_menu), NULL, NULL, NULL, NULL, event->button, event->time);
} else if (event->button == 3) {
gtk_menu_popup(GTK_MENU(app_menu), NULL, NULL, NULL, NULL, event->button, event->time);
bgstack15