x11: Restore argc/argv saving accidentally removed two commits ago

Günther Brammer 2011-01-10 15:52:50 +01:00
parent 031345c1ac
commit 608b76a44a
2 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,7 @@ bool CStdApp::Init(int argc, char * argv[])
g_object_unref(icon);
#endif
// Try to figure out the location of the executable
Priv->argc=argc; Priv->argv=argv;
static char dir[PATH_MAX];
SCopy(argv[0], dir);
if (dir[0] != '/')

View File

@ -170,6 +170,7 @@ public:
XIC xic;
Bool detectable_autorepeat_supported;
CX11Proc X11Proc;
int argc; char ** argv;
};
#endif // INC_STD_X_PRIVATE_H