mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Remove XSMP_ENABLED constructs
The code was never used and the !XSMP_ENABLED code seems to work well enough for all these years.
This commit is contained in:
@@ -222,21 +222,6 @@ static void shutdownCommand(WMenu * menu, WMenuEntry * entry)
|
||||
if ((long)entry->clientdata == M_QUICK)
|
||||
result = R_CLOSE;
|
||||
else {
|
||||
#ifdef XSMP_ENABLED
|
||||
if (wSessionIsManaged()) {
|
||||
int r;
|
||||
|
||||
r = wMessageDialog(menu->frame->screen_ptr,
|
||||
_("Close X session"),
|
||||
_("Close Window System session?\n"
|
||||
"Kill might close applications with unsaved data."),
|
||||
_("Close"), _("Kill"), _("Cancel"));
|
||||
if (r == WAPRDefault)
|
||||
result = R_CLOSE;
|
||||
else if (r == WAPRAlternate)
|
||||
result = R_KILL;
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
int r, oldSaveSessionFlag;
|
||||
|
||||
@@ -257,11 +242,6 @@ static void shutdownCommand(WMenu * menu, WMenuEntry * entry)
|
||||
}
|
||||
|
||||
if (result != R_CANCEL) {
|
||||
#ifdef XSMP_ENABLED
|
||||
if (result == R_CLOSE) {
|
||||
Shutdown(WSLogoutMode);
|
||||
} else
|
||||
#endif /* XSMP_ENABLED */
|
||||
{
|
||||
Shutdown(WSKillMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user