mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
wmaker: Moved variable Screen Count into the global namespace
This commit is contained in:
committed by
Carlos R. Mafra
parent
6d65daf1be
commit
b6423a7b4f
@@ -38,7 +38,6 @@
|
||||
#include "colormap.h"
|
||||
#include "shutdown.h"
|
||||
|
||||
extern int wScreenCount;
|
||||
|
||||
static void wipeDesktop(WScreen * scr);
|
||||
|
||||
@@ -68,7 +67,7 @@ void Shutdown(WShutdownMode mode)
|
||||
#ifdef HAVE_INOTIFY
|
||||
close(inotifyFD);
|
||||
#endif
|
||||
for (i = 0; i < wScreenCount; i++) {
|
||||
for (i = 0; i < w_global.screen_count; i++) {
|
||||
WScreen *scr;
|
||||
|
||||
scr = wScreenWithNumber(i);
|
||||
@@ -89,7 +88,7 @@ void Shutdown(WShutdownMode mode)
|
||||
break;
|
||||
|
||||
case WSRestartPreparationMode:
|
||||
for (i = 0; i < wScreenCount; i++) {
|
||||
for (i = 0; i < w_global.screen_count; i++) {
|
||||
WScreen *scr;
|
||||
|
||||
#ifdef HAVE_INOTIFY
|
||||
|
||||
Reference in New Issue
Block a user