search for: pluginchangewindowst

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

2007 Mar 29
1
replace notify functions with functions that apply changes
...on functions in favor of just having functions that apply changes. This is better as it allow 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->changeWindo...