mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
wmaker: Moved variables for Inotify into the global namespace
This commit is contained in:
committed by
Carlos R. Mafra
parent
6dcfdd072b
commit
a79c0e76d0
@@ -54,9 +54,6 @@ static void wipeDesktop(WScreen * scr);
|
||||
void Shutdown(WShutdownMode mode)
|
||||
{
|
||||
int i;
|
||||
#ifdef HAVE_INOTIFY
|
||||
extern int inotifyFD;
|
||||
#endif
|
||||
|
||||
switch (mode) {
|
||||
case WSLogoutMode:
|
||||
@@ -65,7 +62,10 @@ void Shutdown(WShutdownMode mode)
|
||||
/* if there is no session manager, send SAVE_YOURSELF to
|
||||
* the clients */
|
||||
#ifdef HAVE_INOTIFY
|
||||
close(inotifyFD);
|
||||
if (w_global.inotify.fd_event_queue >= 0) {
|
||||
close(w_global.inotify.fd_event_queue);
|
||||
w_global.inotify.fd_event_queue = -1;
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < w_global.screen_count; i++) {
|
||||
WScreen *scr;
|
||||
@@ -92,7 +92,10 @@ void Shutdown(WShutdownMode mode)
|
||||
WScreen *scr;
|
||||
|
||||
#ifdef HAVE_INOTIFY
|
||||
close(inotifyFD);
|
||||
if (w_global.inotify.fd_event_queue >= 0) {
|
||||
close(w_global.inotify.fd_event_queue);
|
||||
w_global.inotify.fd_event_queue = -1;
|
||||
}
|
||||
#endif
|
||||
scr = wScreenWithNumber(i);
|
||||
if (scr) {
|
||||
|
||||
Reference in New Issue
Block a user