diff options
author | B. Stack <bgstack15@gmail.com> | 2022-10-10 09:00:41 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-10-10 09:00:41 -0400 |
commit | 18f1bdb7769c341f73962b8e5af204262b542805 (patch) | |
tree | dd0073889c2fb6e3e92b4a47dea454a539ed742f | |
parent | improve variant support, and add tooltip (diff) | |
download | fbxkb-18f1bdb7769c341f73962b8e5af204262b542805.tar.gz fbxkb-18f1bdb7769c341f73962b8e5af204262b542805.tar.bz2 fbxkb-18f1bdb7769c341f73962b8e5af204262b542805.zip |
swap left<-->middle click on tray icon
-rw-r--r-- | fbxkb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |