Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > X11 draws off screen

X11 draws off screen
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2003
Status: Offline
Reply With Quote
Mar 12, 2003, 12:02 AM
 
When I launch X11, no matter what the window manager, it launches most of the windows way above and/or to the left of my screen boundaries. Anger and frustration result. How can I fix this?

-RavenEA
     
Senior User
Join Date: Jun 2002
Location: UK
Status: Offline
Reply With Quote
Mar 12, 2003, 04:24 AM
 
Originally posted by RavenEA:
When I launch X11, no matter what the window manager, it launches most of the windows way above and/or to the left of my screen boundaries. Anger and frustration result. How can I fix this?

-RavenEA
put this in your ~/.xinitrc file:

#!/bin/sh
# $Id: xinitrc,v 1.1 2003/01/29 00:07:55 jharper Exp $

# Added with XDarwin to correct for locale problems

if [ -f /sw/bin/init.sh ]; then source /sw/bin/init.sh; fi

unset LANG

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=XINITDIR/.Xresources
sysmodmap=XINITDIR/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# Start the proper window manager and programs
# Find out if X11 is running at all
x11pid=$(cat /tmp/.X0-lock)
if [ $x11pid -ne 0 ] ; then
# Determine if "XDarwin" is running
isXDarwin="`ps -x -o command | grep XDarwin | grep -v grep | wc -l`"
if [ $isXDarwin -ne 0 ] ; then
twm &
xterm -geometry 120x54+10+10
fi
# Determine if "X11.app" is running
isApple="`ps -x -o command | grep X11.app | grep -v grep | wc -l`"
if [ $isApple -ne 0 ] ; then

# start some nice programs

xterm -fa courier -fs 15 -name "100% VEGAN" &

# start the window manager

exec quartz-wm

fi
fi
     
RavenEA  (op)
Fresh-Faced Recruit
Join Date: Mar 2003
Status: Offline
Reply With Quote
Mar 12, 2003, 01:51 PM
 
Thanks
(Last edited by RavenEA; Mar 12, 2003 at 06:44 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2