Move the startup notification monitor context to globalconf

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-16 13:57:31 +02:00
parent a488d3f49d
commit e76310ef77
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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 */

View File

@ -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