Allow middle click & up/down mousewheel on the clock
The bulk of this commit originally came from David B. Cortarello's patch (see here - https://gitlab.com/o9000/tint2/issues/430), with me adding the up/down mousewheel elements. Under Openbox the middle-click is normally used to display the Openbox menu and the mousewheel to switch desktop. So I needed to modify tint.c in order to prevent openbox intercepting the new actions. This commit creates the following new configuration settings :- clock_mclick_command clock_uwheel_command clock_dwheel_command
This commit is contained in:
12
src/config.c
12
src/config.c
@@ -463,10 +463,22 @@ void add_entry (char *key, char *value)
|
||||
if (strlen(value) > 0)
|
||||
clock_lclick_command = strdup(value);
|
||||
}
|
||||
else if (strcmp(key, "clock_mclick_command") == 0) {
|
||||
if (strlen(value) > 0)
|
||||
clock_mclick_command = strdup(value);
|
||||
}
|
||||
else if (strcmp(key, "clock_rclick_command") == 0) {
|
||||
if (strlen(value) > 0)
|
||||
clock_rclick_command = strdup(value);
|
||||
}
|
||||
else if (strcmp(key, "clock_uwheel_command") == 0) {
|
||||
if (strlen(value) > 0)
|
||||
clock_uwheel_command = strdup(value);
|
||||
}
|
||||
else if (strcmp(key, "clock_dwheel_command") == 0) {
|
||||
if (strlen(value) > 0)
|
||||
clock_dwheel_command = strdup(value);
|
||||
}
|
||||
|
||||
/* Taskbar */
|
||||
else if (strcmp (key, "taskbar_mode") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user