Exclusive window manager for -multiwindow

2004-02-11 Thread Takuma Murakami
I have committed a change for -multiwindow window manager
to the xorg tree.  Now the wm should be able to detect
another wm and the others can detect it.  This change
corresponds to the second item (Window manager detection)
in the To-Do list.

To do so the internal wm grabs ButtonPressMask, which is
allowed only one client at once.  Thus other wm's will fail
to obtain the mask and immediately exit when invoked.

Takuma Murakami


xdmcp error

2004-02-11 Thread J S
Hi,

I can't get xdmcp to work. I'm using the latest XFree packages:

XFree86-base 4.3.0-1OK
XFree86-bin  4.3.0-8OK
XFree86-etc  4.3.0-6OK
XFree86-fenc 4.2.0-3OK
XFree86-fnts 4.2.0-3OK
XFree86-lib  4.3.0-1OK
XFree86-lib-compat   4.3.0-2OK
XFree86-prog 4.3.0-12   OK
XFree86-xserv4.3.0-44   OK
I've run the following command on Windows XP with various resolutions/color 
depths/engine settings but all started up, waited about 1 minute, then 
shutdown. The login window never came up:

xwin -query splhrl81.abc.com -from 13.252.55.117 -ac

$ cat /tmp/xwin.log
ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(==) Using config file: /etc/X11/XF86Config
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (??) unknown.
(**) FontPath set to 
/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/m
isc/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6
/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
(**) RgbPath set to /usr/X11R6/lib/X11/rgb
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1024 dwHeight: 768
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 24 bits per 
pixel
winCreateBoundingWindowWindowed - User w: 1024 h: 768
winCreateBoundingWindowWindowed - Current w: 1024 h: 768
winAdjustForAutoHide - Original WorkArea: 0 0 738 1024
winAdjustForAutoHide - Adjusted WorkArea: 0 0 738 1024
winCreateBoundingWindowWindowed - WindowClient w 1018 h 706 r 1018 l 0 b 706 
t 0

winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 4072
winAllocateFBShadowDDNL - Created shadow pitch: 4072
winAllocateFBShadowDDNL - Created shadow stride: 1357
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 
24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of 
shar
ed memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809)
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(**) Using keyboard Keyboard1 as primary keyboard
(**) Option AutoRepeat 500 30
(**) AutoRepeat: 500 30
(**) Option XkbRules xfree86
(**) XKB: rules: xfree86
(**) Option XkbModel pc102
(**) XKB: model: pc102
(**) Option XkbLayout gb
(**) XKB: layout: gb
Rules = xfree86 Model = pc102 Layout = gb Variant = (null) Options = 
(n
ull)
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from
list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing 
from
list!
winPointerWarpCursor - Discarding first warp: 509 353
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned

Fatal server error:
XDMCP fatal error: Session failed Session 267 failed for display 
S302087D-udp106
1279uds.abc.com:0: Cannot open display

winDeinitMultiWindowWM - Noting shutdown in progress

js.

_
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband



Re: xdmcp error

2004-02-11 Thread Alexander Gottwald
On Wed, 11 Feb 2004, J S wrote:

 Hi,
 
 xwin -query splhrl81.abc.com -from 13.252.55.117 -ac

 Fatal server error:
 XDMCP fatal error: Session failed Session 267 failed for display 
 S302087D-udp106
 1279uds.abc.com:0: Cannot open display

is 13.252.55.117 the same as 1279uds.abc.com? Is port 6000 reachable
from splhrl81.abc.com? Maybe there is a firewall blocking the connection.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: xdmcp error

2004-02-11 Thread J S


 Hi,

 xwin -query splhrl81.abc.com -from 13.252.55.117 -ac
 Fatal server error:
 XDMCP fatal error: Session failed Session 267 failed for display
 S302087D-udp106
 1279uds.abc.com:0: Cannot open display
is 13.252.55.117 the same as 1279uds.abc.com? Is port 6000 reachable
from splhrl81.abc.com? Maybe there is a firewall blocking the connection.
bye
ago
--
The hostname for the ip address was right on my windows machine but 
different on the dns server checked by splhrl81 so there's a problem with 
that DNS server. But, why is XFree trying to get my hostname when I've 
already given it my IP address?

js.

_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband



simple problem with 2 monitors

2004-02-11 Thread Alberto Sáez Torres
 Hello. I've been loocking for any answer in the mailist, but I've no 
found any usefull data for my problem:

 I'm using a laptop with an nvidea, and I usually work with 2 monitors. 
(1024x768 and  other with 1280x1024) I use an extended Desktop: I have 
in my main monitor the taksbar, but I can move any window to any of the 
two monitors.

If I exec:

$ XWin.exe -multiwindow -multiplemonitors 

and call any X-application (xterm, by example) the window appears in the 
main monitor. But if I try to move it to the second monitor, I can't 
work with it (the window only shows a white rectangle)

 I've try with a lot of configurations (with -screen, with and wihtout 
-multiplemonitors and so on, but I can't get the solution.

 So... Can anyone help me?

 Thansk for your help.
Alberto Sáez


Re: xdmcp error

2004-02-11 Thread Alexander Gottwald
On Wed, 11 Feb 2004, J S wrote:

 The hostname for the ip address was right on my windows machine but 
 different on the dns server checked by splhrl81 so there's a problem with 
 that DNS server. But, why is XFree trying to get my hostname when I've 
 already given it my IP address?

It's not the xserver which does the translation. The xserver is sending out
the from address and the xdmcp server does a reverse lookup and then uses this 
name. 

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: simple problem with 2 monitors

2004-02-11 Thread Andrew Braverman
Though I do not use multiple monitors and may be missing something about the
way you are doing things, I think that what you are missing is that in
multiwindow mode, each X window is a separate MS window. There is also a
root X window that is usually hidden, but that you can see, and would see as
a dark background with, potentially, some white rectangles that may or may
not show something else.  There would be no menu bars on these.  My guess is
that you moved the root window to your other monitor, but did not move any
of the X windows there.  Is that possible?

- Andy

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Alberto Sáez Torres
 Sent: Wednesday, February 11, 2004 12:10 PM
 To: [EMAIL PROTECTED]
 Subject: simple problem with 2 monitors



   Hello. I've been loocking for any answer in the mailist,
 but I've no
 found any usefull data for my problem:

   I'm using a laptop with an nvidea, and I usually work with
 2 monitors.
 (1024x768 and  other with 1280x1024) I use an extended
 Desktop: I have
 in my main monitor the taksbar, but I can move any window to
 any of the
 two monitors.

 If I exec:

 $ XWin.exe -multiwindow -multiplemonitors 

 and call any X-application (xterm, by example) the window
 appears in the
 main monitor. But if I try to move it to the second monitor, I can't
 work with it (the window only shows a white rectangle)

   I've try with a lot of configurations (with -screen, with
 and wihtout
 -multiplemonitors and so on, but I can't get the solution.

   So... Can anyone help me?

   Thansk for your help.
   Alberto Sáez






Re: Exclusive window manager for -multiwindow

2004-02-11 Thread Harold L Hunt II
Takuma,

Excellent.  I wonder why the commit did not generate an email to the 
xorg-commit list.  I'll try to get this into my local branch soon and 
make a new release.

Harold


Strange problem with shadowed window

2004-02-11 Thread Øyvind Harboe
I'm seing a strange problem. 

When I open a window in Evolution to write an email, there is sometimes
a partially obscured shadow window behind(to the left) of my window. Ca.
30 pixels are visible.

Stranger yet, the partially obscured window appears to be functional.

If I navigate the mouse over the buttons of the partially obscured
shadow window, I see buttons being highlighted.




There is a different problem I sometimes run into, that smells similiar.

When I open Evolution, the mouse will sometimes be offset to the left
and above of the mouse hotspot by ~50x50 pixels.

The problem goes away when I minimize and maximize the Window.

More speculation

Windows XP animates windows (i.e. resizes in multiple steps) to create a
zoom effect.

Could this be a animated(zoom) window race condition?

I.e.:

1. XFree is notified of change in window size
2. XFree gets window size
3. Windows resizes the window again
4. XFree clears the changed flag


The fix would be to swap 2 and 4.

This does not explain the shadowed window.

Øyvind




different resolutions on different monitors

2004-02-11 Thread Chad Haynes
I am using 2 monitors, one with 1280x1024 and the other with 1024x768.  
When I start the X server using the -multiwindow option then start an 
app (such as xterm) the application always opens in the top corner of 
the smaller monitor at a point where the top of the window is off the 
screen.  I can't get to the title bar to move the window so in order to 
see everything I have to tile or cascade the windows which is a pain.  
Is there some way to set the default location on the screen the windows 
open?

Thanks for the help.

-Chad


Re: xdmcp error

2004-02-11 Thread J S



 The hostname for the ip address was right on my windows machine but
 different on the dns server checked by splhrl81 so there's a problem 
with
 that DNS server. But, why is XFree trying to get my hostname when I've
 already given it my IP address?

It's not the xserver which does the translation. The xserver is sending out
the from address and the xdmcp server does a reverse lookup and then uses 
this
name.

bye
ago
--
Thanks Alex,

Presumably I can configure the xdmcp server not to do a reverse lookup.

_
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband



xterm multi-windows freeze

2004-02-11 Thread Lester Ingber
At least once a day, for the past week or so, my xterms freeze
(not responding).  I can kill the processes under my master console
that brings up XWin, so I'm pretty sure this is an XFree problem with
XWin -unixkill -emulate3buttons -clipboard -multiwindow 

My XWin.log file ends with:
winTopLevelWindowProc - BitBlt failed: The handle is invalid.

OsVendorReset - Hello
winClipboardProc - Call to select () failed: -1.  Bailing.
OsVendorReset - Clipboard thread has exited.
winInitMultiWindowWM - Caught IO Erro.  Exiting.
winDeinitMultiWindowWM - Noting shutdown in progress

stdout (piped to another log file) reads
winMutliWindowWMIOErrorHandler!

Lester




GDI object leak with remote emacs

2004-02-11 Thread Jeremy Tan
I don't know if this is related to the problems that people are
experiencing with local copies of emacs but I'm seeing a GDI object
leak with remote invocations of emacs that are routed back to my X
server.

Basically, I run cygwin/XFree86 on my local workstation, and I start
an emacs on a Unix server that is displayed on my X server here.
When using emacs, everytime I open a file, I can see that the XWin.exe
processes gains a few GDI objects, but killing that buffer in emacs
doesn't free them.  Exiting emacs doesn't free them either.  Once the
leak grows enough (around 1500 GDI objects in XWin.exe) I start
getting repaint problems and I have to kill X and restart it.

This only started occuring when I updated my cygwin package last
week.  Below is my cygcheck output.

Thanks,

j


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Feb 11 17:24:47 2004

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:   d:\cygwin\usr\local\bin
d:\cygwin\bin
d:\cygwin\bin
d:\cygwin\usr\local\bin
d:\cygwin\bin
d:\cygwin\bin
.
d:\cygwin\bin
d:\cygwin\usr\X11R6\bin
d:\oracle\ora92\bin
d:\Program Files\Oracle\jre\1.3.1\bin
d:\Program Files\Oracle\jre\1.1.8\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
d:\SFU\common\
c:\Program Files\Symantec\pcAnywhere\

Output from d:\cygwin\bin\id.exe (nontsec)
UID: 1003(jetset) GID: 513(None)
513(None)

Output from d:\cygwin\bin\id.exe (ntsec)
UID: 1003(jetset) GID: 513(None)
513(None)544(Administrators)  
547(Power Users) 545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `d:\cygwin\home\jetset'
MAKE_MODE = `unix'
PWD = `/home/jetset'
USER = `jetset'

!EXITCODE = `'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\jetset\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `BUTTERBALL'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CYGWIN_ROOT = `\cygwin'
DISPLAY = `127.0.0.1:0.0'
GROUP = `None'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\jetset'
HOST = `butterball'
HOSTTYPE = `i386'
LOGNAME = `jetset'
LOGONSERVER = `\\BUTTERBALL'
MACHTYPE = `i386'
MANPATH = `:/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `posix'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 0, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0600'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
SESSIONNAME = `Console'
SFUDIR = `D:\SFU\'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TERM = `xterm'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'
USERDOMAIN = `BUTTERBALL'
USERNAME = `jetset'
USERPROFILE = `C:\Documents and Settings\jetset'
VENDOR = `intel'
WINDIR = `C:\WINNT'
WINDOWID = `4194318'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `d:/cygwin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `d:/cygwin/bin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `d:/cygwin/lib'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start 
Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `d:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd   N/AN/A
c:  hd  NTFS2437Mb  96% CP CS UN PA FC 
d:  hd  NTFS3075Mb  39% CP CS UN PA FC 
e:  cd   N/AN/A
h:  net NTFS   12110Mb  95% CP CSPAjetset

d:/cygwin  / userbinmode
d:/cygwin/bin  /usr/bin  userbinmode
d:/cygwin/lib  /usr/lib  userbinmode
.  /cygdrive userbinmode,cygdrive
d:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode

Found: d:\cygwin\bin\awk.exe
Found: d:\cygwin\bin\bash.exe
Found: d:\cygwin\bin\cat.exe
Found: d:\cygwin\bin\cp.exe
Found: d:\cygwin\bin\cpp.exe
Found: d:\cygwin\bin\find.exe
Found: d:\cygwin\bin\gcc.exe

Re: different resolutions on different monitors

2004-02-11 Thread Igor Pechtchanski
On Wed, 11 Feb 2004, Chad Haynes wrote:

 I am using 2 monitors, one with 1280x1024 and the other with 1024x768.
 When I start the X server using the -multiwindow option then start an
 app (such as xterm) the application always opens in the top corner of
 the smaller monitor at a point where the top of the window is off the
 screen.  I can't get to the title bar to move the window so in order to
 see everything I have to tile or cascade the windows which is a pain.

This could be a bug in the -multiplemonitors implementation.  Please post
the exact command you use to invoke XWin.exe.

 Is there some way to set the default location on the screen the windows
 open?

 Thanks for the help.
 -Chad

As a temporary workaround, look into the -geometry option that any X app
should support ('PAGER=less -p GEOMETRY man X' should do it).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: GDI object leak with remote emacs

2004-02-11 Thread Igor Pechtchanski
On Wed, 11 Feb 2004, Jeremy Tan wrote:

 I don't know if this is related to the problems that people are
 experiencing with local copies of emacs but I'm seeing a GDI object
 leak with remote invocations of emacs that are routed back to my X
 server.

 Basically, I run cygwin/XFree86 on my local workstation, and I start
 an emacs on a Unix server that is displayed on my X server here.
 When using emacs, everytime I open a file, I can see that the XWin.exe
 processes gains a few GDI objects, but killing that buffer in emacs
 doesn't free them.  Exiting emacs doesn't free them either.  Once the
 leak grows enough (around 1500 GDI objects in XWin.exe) I start
 getting repaint problems and I have to kill X and restart it.

 This only started occuring when I updated my cygwin package last
 week.  Below is my cygcheck output.

 Thanks,
 j

FWIW, the same GDI object accumulation happens in Exceed.  This is just a
datapoint, though, and doesn't mean it shouldn't be fixed in XWin, if at
all possible.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: xdmcp error

2004-02-11 Thread Igor Pechtchanski
On Wed, 11 Feb 2004, J S wrote:

   The hostname for the ip address was right on my windows machine but
   different on the dns server checked by splhrl81 so there's a problem
   with that DNS server. But, why is XFree trying to get my hostname
   when I've already given it my IP address?
 
 It's not the xserver which does the translation. The xserver is sending
 out the from address and the xdmcp server does a reverse lookup and
 then uses this name.

 Thanks Alex,

 Presumably I can configure the xdmcp server not to do a reverse lookup.

Good luck!  You're better off configuring your DNS server to return the
right value (or adding an entry for your Windows machine to /etc/hosts on
the machine running the xdmcp server).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: different resolutions on different monitors

2004-02-11 Thread Earle F. Philhower III
At 10:11 PM 2/11/2004 -0800, I wrote:
Actually, I think it's a feature.  Chad's got a non-rectangular Windows
desktop:   (Bad ASCII alert!) x  x=monitor 1 1024x768
  x  y=monitor 2 1280x1024
  x
Oops, make that y=1024x768, x=1280x1024)...

-Earle F. Philhower, III
 [EMAIL PROTECTED]
 cdrlabel - ZipLabel - FlpLabel
 http://www.cdrlabel.com