aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gui/wm
diff options
context:
space:
mode:
authorGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 17:49:48 +0000
committerGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 17:49:48 +0000
commit3bec8cbbc6e10b87382dc684ec7189704820d0cc (patch)
tree96a2c56a402884992b35db8f8b1dc1063fcf31c5 /Gui/wm
parent96e19cb3a2f7dec0d487d29fda9d430cad1658a4 (diff)
add lgb's localhost detect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1839 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/wm')
-rw-r--r--Gui/wm/ws.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c
index 46ed229f20..d82ad2e3a5 100644
--- a/Gui/wm/ws.c
+++ b/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" );