search for: plugin_screen

Displaying 1 result from an estimated 1 matches for "plugin_screen".

2007 Mar 29
1
replace notify functions with functions that apply changes
...low each plugin to execute something both before and after the change 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, pluginChangeWind...