From e76310ef779d05085ea2e1cd10512b96b38e9b97 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 16 Aug 2010 13:57:31 +0200 Subject: [PATCH] Move the startup notification monitor context to globalconf Signed-off-by: Uli Schlachter --- globalconf.h | 2 ++ screen.h | 2 -- spawn.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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