From 18f1bdb7769c341f73962b8e5af204262b542805 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 10 Oct 2022 09:00:41 -0400 Subject: swap left<-->middle click on tray icon --- fbxkb.c | 6 +++--- 1 file 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 ", version); + "fbxkb %s\nX11 Keyboard switcher\nOriginal author: Anatoly Asviyan \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); -- cgit