Displaying 1 result from an estimated 1 matches for "state_plugin_care_about_mask".
2007 Mar 29
1
replace notify functions with functions that apply changes
...hange
has been applied. Example:
Instead of wrapping a windowStateChangeNotify function you would wrap a
changeWindowState function
static void
pluginChangeWindowState (CompWindow *w, int state)
{
int oldState = w->state;
PLUGIN_SCREEN (w->screen);
if ((oldState ^ state) & STATE_PLUGIN_CARE_ABOUT_MASK)
{
/* do something interesting */
}
UNWRAP (ps, w->screen, changeWindowState);
(*w->screen->changeWindowState) (w, state);
WRAP (ps, w->screen, changeWindowState, pluginChangeWindowState);
if ((oldState ^ state) & STATE_PLUGIN_CARE_ABOUT_MASK)
{...