Detect window-system from display name
This commit is contained in:
parent
ce9f00e4e5
commit
efc3dd3ccc
8 changed files with 93 additions and 57 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue