Mercurial > mplayer.hg
changeset 1838:4984bd55518e
add lgb's localhost detect
author | pontscho |
---|---|
date | Sun, 02 Sep 2001 17:49:48 +0000 |
parents | 9fd8b5e0b864 |
children | ebab5d4c261d |
files | Gui/wm/ws.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/wm/ws.c Sun Sep 02 17:21:52 2001 +0000 +++ b/Gui/wm/ws.c Sun Sep 02 17:49:48 2001 +0000 @@ -148,6 +148,17 @@ } } +{ /* 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" );