mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove HEARTBEAT #ifdef's
This commit is contained in:
@@ -906,13 +906,7 @@ void wDefaultsCheckDomains(void)
|
|||||||
WMPropList *dict;
|
WMPropList *dict;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#ifdef HEARTBEAT
|
|
||||||
puts("Checking domains...");
|
|
||||||
#endif
|
|
||||||
if (stat(WDWindowMaker->path, &stbuf) >= 0 && WDWindowMaker->timestamp < stbuf.st_mtime) {
|
if (stat(WDWindowMaker->path, &stbuf) >= 0 && WDWindowMaker->timestamp < stbuf.st_mtime) {
|
||||||
#ifdef HEARTBEAT
|
|
||||||
puts("Checking WindowMaker domain");
|
|
||||||
#endif
|
|
||||||
WDWindowMaker->timestamp = stbuf.st_mtime;
|
WDWindowMaker->timestamp = stbuf.st_mtime;
|
||||||
|
|
||||||
/* global dictionary */
|
/* global dictionary */
|
||||||
@@ -951,9 +945,6 @@ void wDefaultsCheckDomains(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (stat(WDWindowAttributes->path, &stbuf) >= 0 && WDWindowAttributes->timestamp < stbuf.st_mtime) {
|
if (stat(WDWindowAttributes->path, &stbuf) >= 0 && WDWindowAttributes->timestamp < stbuf.st_mtime) {
|
||||||
#ifdef HEARTBEAT
|
|
||||||
puts("Checking WMWindowAttributes domain");
|
|
||||||
#endif
|
|
||||||
/* global dictionary */
|
/* global dictionary */
|
||||||
shared_dict = readGlobalDomain("WMWindowAttributes", True);
|
shared_dict = readGlobalDomain("WMWindowAttributes", True);
|
||||||
/* user dictionary */
|
/* user dictionary */
|
||||||
@@ -1008,9 +999,6 @@ void wDefaultsCheckDomains(void)
|
|||||||
|
|
||||||
if (stat(WDRootMenu->path, &stbuf) >= 0 && WDRootMenu->timestamp < stbuf.st_mtime) {
|
if (stat(WDRootMenu->path, &stbuf) >= 0 && WDRootMenu->timestamp < stbuf.st_mtime) {
|
||||||
dict = WMReadPropListFromFile(WDRootMenu->path);
|
dict = WMReadPropListFromFile(WDRootMenu->path);
|
||||||
#ifdef HEARTBEAT
|
|
||||||
puts("Checking WMRootMenu domain");
|
|
||||||
#endif
|
|
||||||
if (dict) {
|
if (dict) {
|
||||||
if (!WMIsPLArray(dict) && !WMIsPLString(dict)) {
|
if (!WMIsPLArray(dict) && !WMIsPLString(dict)) {
|
||||||
WMReleasePropList(dict);
|
WMReleasePropList(dict);
|
||||||
|
|||||||
@@ -156,9 +156,6 @@ typedef struct {
|
|||||||
unsigned int SAVE_YOURSELF:1;
|
unsigned int SAVE_YOURSELF:1;
|
||||||
/* WindowMaker specific */
|
/* WindowMaker specific */
|
||||||
unsigned int MINIATURIZE_WINDOW:1;
|
unsigned int MINIATURIZE_WINDOW:1;
|
||||||
#ifdef MONITOR_HEARTBEAT
|
|
||||||
unsigned int HEARTBEAT:1;
|
|
||||||
#endif
|
|
||||||
} WProtocols;
|
} WProtocols;
|
||||||
|
|
||||||
|
|
||||||
@@ -243,9 +240,6 @@ typedef struct WWindow {
|
|||||||
|
|
||||||
long event_mask; /* the event mask thats selected */
|
long event_mask; /* the event mask thats selected */
|
||||||
|
|
||||||
#ifdef MONITOR_HEARTBEAT
|
|
||||||
time_t last_beat;
|
|
||||||
#endif
|
|
||||||
struct {
|
struct {
|
||||||
/* state flags */
|
/* state flags */
|
||||||
unsigned int mapped:1;
|
unsigned int mapped:1;
|
||||||
|
|||||||
Reference in New Issue
Block a user