Re: [Bug 934] - Cpu usage is always 100%

2002-08-10 Thread Joerg Mayer
On Thu, Aug 01, 2002 at 02:58:58PM -0500, [EMAIL PROTECTED] wrote: We should list some cases of programs here doing this, If you don't mind downloading 16 MBytes, I have an app (actually a video turned executable) that seems to exhibit this behaviour:

ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Tommy Schultz Lassen
Her is a partial implementation of ChangeDisplaySettings and friends. It currently works if Desktop is set to the size the display is changed to or if Managed=N. For Desktop not the size that the display is changed to the code tries SetWindowPos and XResizeWindow witch work in sawfis but dosent

Re: ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Sylvain Petreolle
What does this one ? --- Tommy Schultz Lassen [EMAIL PROTECTED] a écrit : Her is a partial implementation of ChangeDisplaySettings and friends. It currently works if Desktop is set to the size the display is changed to or if Managed=N. For Desktop not the size that the display is

thread handling fix for BSD and Solaris

2002-08-10 Thread Pierre Beyssac
Hi, Here's a patch to fix a EFAULT error returned by ptrace calls in server/context_i386.c, causing tons of file_set_error: Bad address errors. Two arguments to ptrace were reversed. This is tested on FreeBSD and checked with NetBSD and Solaris ptrace(2) manual pages. ---

Re: ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Lionel Ulmer
It currently works if Desktop is set to the size the display is changed to or if Managed=N. Well, I just have one problem with this patch : you call XGrabPointer in your code : + TSXGrabPointer(thread_display(), window, True, 0, GrabModeAsync, +GrabModeAsync, window, None,

Re: thread handling fix for BSD and Solaris

2002-08-10 Thread Pierre Beyssac
On Sat, Aug 10, 2002 at 07:12:07PM +0200, Pierre Beyssac wrote: Here's a patch to fix a EFAULT error returned by ptrace calls in server/context_i386.c, causing tons of file_set_error: Bad address errors. Please disregard my previous patch, I missed two ptrace occurences. Here's a revised

Re: ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Tommy Schultz Lassen
Sylvain Petreolle [EMAIL PROTECTED] writes: What does this one ? When in Desktop mode it: 1: Tries to change the desktop's size to the size specified in the call to ChangeDisplaySettings. Dosent work in kdm. I don't know whey yet. 2: Confines the pointer to the desktop window.

Re: ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Sylvain Petreolle
Okay, then I have a question : What happens in mode Desktop = N ? Without your patch applied at this time, Quake III Arena can resize it's screen but is complaining about this function being a stub. I write this because i don't know what function can be used to resize screen / change video mode.

Re: ChangeDisplaySettings(Neverwinter Nights)

2002-08-10 Thread Tommy Schultz Lassen
Sylvain Petreolle [EMAIL PROTECTED] writes: Okay, then I have a question : What happens in mode Desktop = N ? That depends. If Managed=N it would change the mode. If Managed=Y it is still uninplimentet and dosend change anything. Without your patch applied at this time, Quake III Arena can

Re: thread handling fix for BSD and Solaris

2002-08-10 Thread Tony Lambregts
Pierre Beyssac wrote: On Sat, Aug 10, 2002 at 07:12:07PM +0200, Pierre Beyssac wrote: Here's a patch to fix a EFAULT error returned by ptrace calls in server/context_i386.c, causing tons of file_set_error: Bad address errors. Please disregard my previous patch, I missed two ptrace