Detect window-system from display name

This commit is contained in:
Daniel Colascione 2012-09-17 03:55:05 -08:00
parent ce9f00e4e5
commit efc3dd3ccc
8 changed files with 93 additions and 57 deletions

View file

@ -597,7 +597,7 @@ decode_options (int argc, char **argv)
#if defined (NS_IMPL_COCOA)
alt_display = "ns";
#elif defined (HAVE_NTGUI)
alt_display = "windows";
alt_display = "w32";
#endif
display = egetenv ("DISPLAY");
@ -1599,7 +1599,7 @@ main (int argc, char **argv)
}
#ifdef HAVE_NTGUI
if (display && !strcmp (display, "windows"))
if (display && !strcmp (display, "w32"))
w32_give_focus ();
#endif /* HAVE_NTGUI */