mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 09:22:27 +01:00
wmaker: Moved timestamp variable (#1) to the global variable structure
This commit is contained in:
committed by
Carlos R. Mafra
parent
577506cbd2
commit
af6c4ec37f
@@ -69,7 +69,6 @@
|
||||
#define WO_ENTRIES 3
|
||||
|
||||
/**** Global data ***/
|
||||
extern Time LastTimestamp;
|
||||
extern Atom _XA_WM_DELETE_WINDOW;
|
||||
extern Atom _XA_GNUSTEP_WM_MINIATURIZE_WINDOW;
|
||||
|
||||
@@ -113,7 +112,7 @@ static void execMenuCommand(WMenu * menu, WMenuEntry * entry)
|
||||
switch (entry->order) {
|
||||
case MC_CLOSE:
|
||||
/* send delete message */
|
||||
wClientSendProtocol(wwin, _XA_WM_DELETE_WINDOW, LastTimestamp);
|
||||
wClientSendProtocol(wwin, _XA_WM_DELETE_WINDOW, w_global.timestamp.last_event);
|
||||
break;
|
||||
|
||||
case MC_KILL:
|
||||
@@ -134,7 +133,7 @@ static void execMenuCommand(WMenu * menu, WMenuEntry * entry)
|
||||
wDeiconifyWindow(wwin);
|
||||
} else {
|
||||
if (wwin->protocols.MINIATURIZE_WINDOW) {
|
||||
wClientSendProtocol(wwin, _XA_GNUSTEP_WM_MINIATURIZE_WINDOW, LastTimestamp);
|
||||
wClientSendProtocol(wwin, _XA_GNUSTEP_WM_MINIATURIZE_WINDOW, w_global.timestamp.last_event);
|
||||
} else {
|
||||
wIconifyWindow(wwin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user