1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-25 16:02:33 +01:00

wmaker: Moved definition of GNUStep-related XAtoms into the global variables structure

This commit is contained in:
Christophe CURIS
2013-09-29 13:22:56 +02:00
committed by Carlos R. Mafra
parent ecfb2dc902
commit 379f7022bd
8 changed files with 22 additions and 31 deletions

View File

@@ -69,8 +69,6 @@
#define WO_ENTRIES 3
/**** Global data ***/
extern Atom _XA_GNUSTEP_WM_MINIATURIZE_WINDOW;
extern WShortKey wKeyBindings[WKBD_LAST];
@@ -133,7 +131,8 @@ static void execMenuCommand(WMenu * menu, WMenuEntry * entry)
wDeiconifyWindow(wwin);
} else {
if (wwin->protocols.MINIATURIZE_WINDOW) {
wClientSendProtocol(wwin, _XA_GNUSTEP_WM_MINIATURIZE_WINDOW, w_global.timestamp.last_event);
wClientSendProtocol(wwin, w_global.atom.gnustep.wm_miniaturize_window,
w_global.timestamp.last_event);
} else {
wIconifyWindow(wwin);
}