Start the effect on the specified window.
#include <screen/screen.h>
int screen_start_effect(screen_window_t win, float duration, int notify)
The handle of the window whose effect property is to be started.
The duration that the effect will be in place.
A flag to indicate whether or not a SCREEN_EVENT_EFFECT_COMPLETE event is to be sent upon completion of screen_start_effect(). 1 indicates that a SCREEN_EVENT_EFFECT_COMPLETE is to be sent and 0 indicates that no event is sent upon completion of screen_start_effect().
Function Type: Delayed Execution
This function starts the effect on a window for a specified duration.
0 if the value(s) of the property was set to new value(s), or -1 if an error occurred (errno is set).