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? */
|
||||
bool registered;
|
||||
} systray;
|
||||
/** The monitor of startup notifications */
|
||||
SnMonitorContext *snmonitor;
|
||||
} awesome_t;
|
||||
|
||||
extern awesome_t globalconf;
|
||||
|
|
2
screen.h
2
screen.h
|
@ -38,8 +38,6 @@ struct a_screen
|
|||
client_t *prev_client_focus;
|
||||
/** Focused client */
|
||||
client_t *client_focus;
|
||||
/** The monitor of startup notifications */
|
||||
SnMonitorContext *snmonitor;
|
||||
/** The default visual, used to draw */
|
||||
xcb_visualtype_t *visual;
|
||||
/** The signals emitted by screen objects */
|
||||
|
|
2
spawn.c
2
spawn.c
|
@ -236,7 +236,7 @@ spawn_init(void)
|
|||
{
|
||||
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,
|
||||
spawn_monitor_event,
|
||||
NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue