# HG changeset patch # User pontscho # Date 999452988 0 # Node ID 4984bd55518eb3303213807578567c692d49cba8 # Parent 9fd8b5e0b86427018ce434dc4896e7d8bad107e8 add lgb's localhost detect diff -r 9fd8b5e0b864 -r 4984bd55518e Gui/wm/ws.c --- 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" );