mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
add lgb's localhost detect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1839 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
96e19cb3a2
commit
3bec8cbbc6
11
Gui/wm/ws.c
11
Gui/wm/ws.c
@ -148,6 +148,17 @@ if(mDisplay){
|
||||
}
|
||||
}
|
||||
|
||||
{ /* on remote display XShm will be disabled - LGB */
|
||||
char *dispname=DisplayString(wsDisplay);
|
||||
int localdisp=1;
|
||||
if (dispname&&*dispname!=':') {
|
||||
localdisp=0;
|
||||
wsUseXShm=0;
|
||||
}
|
||||
fprintf(stderr,"[ws] Display name: %s => %s display.\n",dispname,localdisp?"local":"REMOTE");
|
||||
if (!localdisp) fprintf(stderr,"[ws] Remote display, disabling XMITSHM\n");
|
||||
}
|
||||
|
||||
if ( !XShmQueryExtension( wsDisplay ) )
|
||||
{
|
||||
fprintf( stderr,"[ws] sorry, your system is not supported X shared memory extension.\n" );
|
||||
|
Loading…
Reference in New Issue
Block a user