Move the startup notification monitor context to globalconf
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a488d3f49d
commit
e76310ef77
|
@ -107,6 +107,8 @@ typedef struct
|
||||||
/** Is awesome the systray owner? */
|
/** Is awesome the systray owner? */
|
||||||
bool registered;
|
bool registered;
|
||||||
} systray;
|
} systray;
|
||||||
|
/** The monitor of startup notifications */
|
||||||
|
SnMonitorContext *snmonitor;
|
||||||
} awesome_t;
|
} awesome_t;
|
||||||
|
|
||||||
extern awesome_t globalconf;
|
extern awesome_t globalconf;
|
||||||
|
|
2
screen.h
2
screen.h
|
@ -38,8 +38,6 @@ struct a_screen
|
||||||
client_t *prev_client_focus;
|
client_t *prev_client_focus;
|
||||||
/** Focused client */
|
/** Focused client */
|
||||||
client_t *client_focus;
|
client_t *client_focus;
|
||||||
/** The monitor of startup notifications */
|
|
||||||
SnMonitorContext *snmonitor;
|
|
||||||
/** The default visual, used to draw */
|
/** The default visual, used to draw */
|
||||||
xcb_visualtype_t *visual;
|
xcb_visualtype_t *visual;
|
||||||
/** The signals emitted by screen objects */
|
/** The signals emitted by screen objects */
|
||||||
|
|
8
spawn.c
8
spawn.c
|
@ -236,10 +236,10 @@ spawn_init(void)
|
||||||
{
|
{
|
||||||
globalconf.sndisplay = sn_xcb_display_new(globalconf.connection, NULL, NULL);
|
globalconf.sndisplay = sn_xcb_display_new(globalconf.connection, NULL, NULL);
|
||||||
|
|
||||||
globalconf.screens.tab[0].snmonitor = sn_monitor_context_new(globalconf.sndisplay,
|
globalconf.snmonitor = sn_monitor_context_new(globalconf.sndisplay,
|
||||||
globalconf.default_screen,
|
globalconf.default_screen,
|
||||||
spawn_monitor_event,
|
spawn_monitor_event,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue