diff --git a/globalconf.h b/globalconf.h index 15ed6da7..f57d59dd 100644 --- a/globalconf.h +++ b/globalconf.h @@ -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; diff --git a/screen.h b/screen.h index 1d777c0f..ed6093e3 100644 --- a/screen.h +++ b/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 */ diff --git a/spawn.c b/spawn.c index 8b1de8e9..329874e8 100644 --- a/spawn.c +++ b/spawn.c @@ -236,10 +236,10 @@ 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.default_screen, - spawn_monitor_event, - NULL, NULL); + globalconf.snmonitor = sn_monitor_context_new(globalconf.sndisplay, + globalconf.default_screen, + spawn_monitor_event, + NULL, NULL); } static void