all repos — tint2 @ 095b311edc9080f1980f460c866526824ebf46a3

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Mouse effects: changed defaults + disabled pixmap caching
o9000 mrovi9000@gmail.com
commit

095b311edc9080f1980f460c866526824ebf46a3

parent

96b9a46c077b91e535185ffb76203820b6b75900

4 files changed, 19 insertions(+), 10 deletions(-)

jump to
M src/config.csrc/config.c

@@ -217,9 +217,9 @@ memcpy(&bg->back_hover, &bg->back, sizeof(Color));

if (!read_border_color_hover) memcpy(&bg->border_hover, &bg->border, sizeof(Color)); if (!read_bg_color_press) - memcpy(&bg->back_pressed, &bg->back, sizeof(Color)); + memcpy(&bg->back_pressed, &bg->back_hover, sizeof(Color)); if (!read_border_color_press) - memcpy(&bg->border_pressed, &bg->border, sizeof(Color)); + memcpy(&bg->border_pressed, &bg->border_hover, sizeof(Color)); } Background bg; init_background(&bg);

@@ -1043,9 +1043,9 @@ memcpy(&bg->back_hover, &bg->back, sizeof(Color));

if (!read_border_color_hover) memcpy(&bg->border_hover, &bg->border, sizeof(Color)); if (!read_bg_color_press) - memcpy(&bg->back_pressed, &bg->back, sizeof(Color)); + memcpy(&bg->back_pressed, &bg->back_hover, sizeof(Color)); if (!read_border_color_press) - memcpy(&bg->border_pressed, &bg->border, sizeof(Color)); + memcpy(&bg->border_pressed, &bg->border_hover, sizeof(Color)); } return 1;
M src/taskbar/taskbar.csrc/taskbar/taskbar.c

@@ -377,7 +377,9 @@ tskbar->area.bg = panel1[0].g_taskbar.background[state];

tskbar->area.pix = tskbar->state_pix[state]; if (taskbarname_enabled) { tskbar->bar_name.area.bg = panel1[0].g_taskbar.background_name[state]; - tskbar->bar_name.area.pix = tskbar->bar_name.state_pix[state]; + if (!panel_config.mouse_effects) { + tskbar->bar_name.area.pix = tskbar->bar_name.state_pix[state]; + } } if (panel_mode != MULTI_DESKTOP) { if (state == TASKBAR_NORMAL)

@@ -388,8 +390,14 @@ }

if (tskbar->area.on_screen == 1) { if (tskbar->state_pix[state] == 0) tskbar->area.redraw = 1; - if (taskbarname_enabled && tskbar->bar_name.state_pix[state] == 0) - tskbar->bar_name.area.redraw = 1; + if (taskbarname_enabled) { + if (!panel_config.mouse_effects) { + if (tskbar->bar_name.state_pix[state] == 0) + tskbar->bar_name.area.redraw = 1; + } else { + tskbar->bar_name.area.redraw = 1; + } + } if (panel_mode == MULTI_DESKTOP && panel1[0].g_taskbar.background[TASKBAR_NORMAL] != panel1[0].g_taskbar.background[TASKBAR_ACTIVE]) { GList *l = tskbar->area.children; if (taskbarname_enabled) l = l->next;
M src/taskbar/taskbarname.csrc/taskbar/taskbarname.c

@@ -119,7 +119,8 @@ PangoLayout *layout;

Color *config_text = (taskbar->desktop == server.desktop) ? &taskbarname_active_font : &taskbarname_font; int state = (taskbar->desktop == server.desktop) ? TASKBAR_ACTIVE : TASKBAR_NORMAL; - taskbar_name->state_pix[state] = taskbar_name->area.pix; + if (!panel_config.mouse_effects) + taskbar_name->state_pix[state] = taskbar_name->area.pix; // draw content layout = pango_cairo_create_layout (c);
M src/tint2conf/properties_rw.csrc/tint2conf/properties_rw.c

@@ -767,9 +767,9 @@ background_force_update();

} if (!read_border_color_press) { GdkColor fillColor; - gtk_color_button_get_color(GTK_COLOR_BUTTON(background_border_color), &fillColor); + gtk_color_button_get_color(GTK_COLOR_BUTTON(background_border_color_over), &fillColor); gtk_color_button_set_color(GTK_COLOR_BUTTON(background_border_color_press), &fillColor); - int fillOpacity = gtk_color_button_get_alpha(GTK_COLOR_BUTTON(background_border_color)); + int fillOpacity = gtk_color_button_get_alpha(GTK_COLOR_BUTTON(background_border_color_over)); gtk_color_button_set_alpha(GTK_COLOR_BUTTON(background_border_color_press), fillOpacity); background_force_update(); }