1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Drop BOUNCE_APP #ifdef's

Since bouncing respects DisableAnimations option, there's no need
in #ifdef's.

Acked-by: Carlos R. Mafra <crmafra@gmail.com>
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
Alexey I. Froloff
2010-09-17 00:25:34 +04:00
committed by Carlos R. Mafra
parent 1194889c95
commit 8e0ef4766d
4 changed files with 0 additions and 15 deletions

View File

@@ -409,14 +409,12 @@ void wApplicationDestroy(WApplication * wapp)
if (wapp->refcount > 0) if (wapp->refcount > 0)
return; return;
#ifdef BOUNCE_APP
if (wapp->flags.bouncing) { if (wapp->flags.bouncing) {
/* event.c:handleDestroyNotify forced this destroy /* event.c:handleDestroyNotify forced this destroy
and thereby overlooked the bounce callback */ and thereby overlooked the bounce callback */
wapp->refcount = 1; wapp->refcount = 1;
return; return;
} }
#endif
scr = wapp->main_window_desc->screen_ptr; scr = wapp->main_window_desc->screen_ptr;
main_window = wapp->main_window; main_window = wapp->main_window;

View File

@@ -46,9 +46,7 @@ typedef struct WApplication {
unsigned int skip_next_animation:1; unsigned int skip_next_animation:1;
unsigned int hidden:1; unsigned int hidden:1;
unsigned int emulated:1; unsigned int emulated:1;
#ifdef BOUNCE_APP
unsigned int bouncing:1; unsigned int bouncing:1;
#endif
} flags; } flags;
} WApplication; } WApplication;

View File

@@ -253,8 +253,6 @@ void DoWindowBirth(WWindow *wwin)
} }
#endif #endif
#ifdef BOUNCE_APP
#define BOUNCE_HZ 25 #define BOUNCE_HZ 25
#define BOUNCE_DELAY (1000/BOUNCE_HZ) #define BOUNCE_DELAY (1000/BOUNCE_HZ)
#define BOUNCE_HEIGHT 24 #define BOUNCE_HEIGHT 24
@@ -402,9 +400,3 @@ void wAppBounce(WApplication *wapp)
data->timer = WMAddPersistentTimerHandler(BOUNCE_DELAY, doAppBounce, data); data->timer = WMAddPersistentTimerHandler(BOUNCE_DELAY, doAppBounce, data);
} }
} }
#else
void wAppBounce(WApplication *wapp)
{
}
#endif

View File

@@ -38,9 +38,6 @@
/* If you want the application icon to be highlighted when it has the focus */ /* If you want the application icon to be highlighted when it has the focus */
#define NEWAPPICON #define NEWAPPICON
/* If you want the application icon to bounce when opening a dialog etc */
#define BOUNCE_APP
/* undefine it if you don't want your config files to be preprocessed by cpp */ /* undefine it if you don't want your config files to be preprocessed by cpp */
#define USECPP #define USECPP