}
}
-static void events(ObEvent *e, void *foo)
+static void event(ObEvent *e, void *foo)
{
switch (e->type) {
case Event_Client_Mapped:
Event_Ob_Desktop |
Event_Client_Unmapped |
Event_X_EnterNotify,
- (EventHandler)events, NULL);
+ (EventHandler)event, NULL);
}
void plugin_shutdown()
{
- dispatch_register(0, (EventHandler)events, NULL);
+ dispatch_register(0, (EventHandler)event, NULL);
}
gboolean history = TRUE;
-void place_random(Client *c)
+static void place_random(Client *c)
{
int l, r, t, b;
int x, y;
TRUE, TRUE);
}
-void place_event(ObEvent *e, void *foo)
+static void event(ObEvent *e, void *foo)
{
g_assert(e->type == Event_Client_New);
void plugin_startup()
{
- dispatch_register(Event_Client_New, (EventHandler)place_event, NULL);
+ dispatch_register(Event_Client_New, (EventHandler)event, NULL);
history_startup();
}
void plugin_shutdown()
{
- dispatch_register(0, (EventHandler)place_event, NULL);
+ dispatch_register(0, (EventHandler)event, NULL);
history_shutdown();
}