Mercurial > mplayer.hg
comparison Gui/wm/ws.c @ 1838:4984bd55518e
add lgb's localhost detect
author | pontscho |
---|---|
date | Sun, 02 Sep 2001 17:49:48 +0000 |
parents | a6c67352ccac |
children | 62b8e85865a2 |
comparison
equal
deleted
inserted
replaced
1837:9fd8b5e0b864 | 1838:4984bd55518e |
---|---|
144 if ( !wsDisplay ) | 144 if ( !wsDisplay ) |
145 { | 145 { |
146 fprintf( stderr,"[ws] couldn't open the display !\n" ); | 146 fprintf( stderr,"[ws] couldn't open the display !\n" ); |
147 exit( 0 ); | 147 exit( 0 ); |
148 } | 148 } |
149 } | |
150 | |
151 { /* on remote display XShm will be disabled - LGB */ | |
152 char *dispname=DisplayString(wsDisplay); | |
153 int localdisp=1; | |
154 if (dispname&&*dispname!=':') { | |
155 localdisp=0; | |
156 wsUseXShm=0; | |
157 } | |
158 fprintf(stderr,"[ws] Display name: %s => %s display.\n",dispname,localdisp?"local":"REMOTE"); | |
159 if (!localdisp) fprintf(stderr,"[ws] Remote display, disabling XMITSHM\n"); | |
149 } | 160 } |
150 | 161 |
151 if ( !XShmQueryExtension( wsDisplay ) ) | 162 if ( !XShmQueryExtension( wsDisplay ) ) |
152 { | 163 { |
153 fprintf( stderr,"[ws] sorry, your system is not supported X shared memory extension.\n" ); | 164 fprintf( stderr,"[ws] sorry, your system is not supported X shared memory extension.\n" ); |