make the event function static!
This commit is contained in:
parent
34ab5a1fb8
commit
dabcb558cd
2 changed files with 7 additions and 7 deletions
|
@ -74,7 +74,7 @@ static void focus_fallback(gboolean switching_desks)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void events(ObEvent *e, void *foo)
|
static void event(ObEvent *e, void *foo)
|
||||||
{
|
{
|
||||||
switch (e->type) {
|
switch (e->type) {
|
||||||
case Event_Client_Mapped:
|
case Event_Client_Mapped:
|
||||||
|
@ -125,10 +125,10 @@ void plugin_startup()
|
||||||
Event_Ob_Desktop |
|
Event_Ob_Desktop |
|
||||||
Event_Client_Unmapped |
|
Event_Client_Unmapped |
|
||||||
Event_X_EnterNotify,
|
Event_X_EnterNotify,
|
||||||
(EventHandler)events, NULL);
|
(EventHandler)event, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void plugin_shutdown()
|
void plugin_shutdown()
|
||||||
{
|
{
|
||||||
dispatch_register(0, (EventHandler)events, NULL);
|
dispatch_register(0, (EventHandler)event, NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
gboolean history = TRUE;
|
gboolean history = TRUE;
|
||||||
|
|
||||||
void place_random(Client *c)
|
static void place_random(Client *c)
|
||||||
{
|
{
|
||||||
int l, r, t, b;
|
int l, r, t, b;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
@ -31,7 +31,7 @@ void place_random(Client *c)
|
||||||
TRUE, TRUE);
|
TRUE, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void place_event(ObEvent *e, void *foo)
|
static void event(ObEvent *e, void *foo)
|
||||||
{
|
{
|
||||||
g_assert(e->type == Event_Client_New);
|
g_assert(e->type == Event_Client_New);
|
||||||
|
|
||||||
|
@ -43,14 +43,14 @@ void place_event(ObEvent *e, void *foo)
|
||||||
|
|
||||||
void plugin_startup()
|
void plugin_startup()
|
||||||
{
|
{
|
||||||
dispatch_register(Event_Client_New, (EventHandler)place_event, NULL);
|
dispatch_register(Event_Client_New, (EventHandler)event, NULL);
|
||||||
|
|
||||||
history_startup();
|
history_startup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void plugin_shutdown()
|
void plugin_shutdown()
|
||||||
{
|
{
|
||||||
dispatch_register(0, (EventHandler)place_event, NULL);
|
dispatch_register(0, (EventHandler)event, NULL);
|
||||||
|
|
||||||
history_shutdown();
|
history_shutdown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue