summaryrefslogtreecommitdiff
path: root/src/twm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/twm.c')
-rw-r--r--src/twm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/twm.c b/src/twm.c
index d397879..5b0c07d 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -90,7 +90,6 @@ in this Software without prior written authorization from The Open Group.
static void InitVariables(void);
-XtAppContext appContext; /* Xt application context */
XtSignalId si;
Display *dpy = NULL; /* which display are we talking to */
@@ -219,6 +218,7 @@ main(int argc, char *argv[])
char *loc;
int MultiScreen = TRUE; /* try for more than one screen? */
char *InitFile = NULL;
+ XtAppContext appContext; /* Xt application context */
ProgramName = argv[0];
Argc = argc;
@@ -645,12 +645,12 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- (void) ConnectToSessionManager(client_id);
+ (void) ConnectToSessionManager(client_id, appContext);
RestartPreviousState = False;
HandlingEvents = TRUE;
InitEvents();
- HandleEvents();
+ HandleEvents(appContext);
exit(EXIT_SUCCESS);
}