|
|
@ -1803,6 +1803,13 @@ void tqt_init_internal( int *argcptr, char **argv,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if ( display ) {
|
|
|
|
|
|
|
|
// Display connection already opened by another application
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appForeignDpy = TRUE;
|
|
|
|
|
|
|
|
appDpy = display;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
// Connect to X server
|
|
|
|
// Connect to X server
|
|
|
|
|
|
|
|
|
|
|
|
if( tqt_is_gui_used ) {
|
|
|
|
if( tqt_is_gui_used ) {
|
|
|
@ -1817,6 +1824,7 @@ void tqt_init_internal( int *argcptr, char **argv,
|
|
|
|
XSynchronize( appDpy, TRUE );
|
|
|
|
XSynchronize( appDpy, TRUE );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// Common code, regardless of whether display is foreign.
|
|
|
|
// Common code, regardless of whether display is foreign.
|
|
|
|
|
|
|
|
|
|
|
|
// Get X parameters
|
|
|
|
// Get X parameters
|
|
|
|