mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 01:12:30 +01:00
Add a preference for XUrgencyHint bouncing
Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
This commit is contained in:
committed by
Carlos R. Mafra
parent
8f63bdafcd
commit
5b24997446
@@ -409,6 +409,9 @@ typedef struct WPreferences {
|
||||
/* shading animation */
|
||||
signed char shade_speed;
|
||||
|
||||
/* bouncing animation */
|
||||
char bounce_appicons_when_urgent;
|
||||
|
||||
int edge_resistance;
|
||||
int resize_increment;
|
||||
char attract;
|
||||
|
||||
@@ -380,6 +380,8 @@ WDefaultEntry optionList[] = {
|
||||
&wPreferences.icon_slide_speed, getEnum, NULL, NULL, NULL},
|
||||
{"ShadeSpeed", "medium", seSpeeds,
|
||||
&wPreferences.shade_speed, getEnum, NULL, NULL, NULL},
|
||||
{"BounceAppIconsWhenUrgent", "YES", NULL,
|
||||
&wPreferences.bounce_appicons_when_urgent, getBool, NULL, NULL, NULL},
|
||||
{"DoubleClickTime", "250", (void *)&wPreferences.dblclick_time,
|
||||
&wPreferences.dblclick_time, getInt, setDoubleClick, NULL, NULL},
|
||||
{"AlignSubmenus", "NO", NULL,
|
||||
|
||||
@@ -432,7 +432,7 @@ static void doAppUrgentBounce(void *arg)
|
||||
WApplication *wapp = (WApplication *)arg;
|
||||
|
||||
if (appIsUrgent(wapp)) {
|
||||
wAppBounce(wapp);
|
||||
if(wPreferences.bounce_appicons_when_urgent) wAppBounce(wapp);
|
||||
} else {
|
||||
WMDeleteTimerHandler(wapp->urgent_bounce_timer);
|
||||
wapp->urgent_bounce_timer = NULL;
|
||||
|
||||
Reference in New Issue
Block a user