From owner-freebsd-x11@FreeBSD.ORG Fri Feb 22 20:22:21 2008 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBE416A519 for ; Fri, 22 Feb 2008 20:22:21 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 9186313C474 for ; Fri, 22 Feb 2008 20:22:20 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so677961fka.11 for ; Fri, 22 Feb 2008 12:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=Q5qMMvswxZyznAB/3HcAhmITmPJ1HD194pj3NzRXJXc=; b=Rsjdz+EPDLNXZ3QfF+b7Ca1ndRyiQ/F9suXwOdO25zwCFuZos8j5CT8wqPmS7Dxd83cNuTk6PiuvGwo4sCyaV/gY2ITfaWveNhfpRgUK/XucxCiDeQm9F7FmaRoabxfy9sxZFnmZO8Qy4URwc+gFZHeQjvqAJ29PxgyIgD07PUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=guydoaTJ/71xJ5tzu7w42vZ3PoGFEeVgTESFm0utXZUYHKBFSEqjgJj5R7y84GcGmojqJ513yo/P/R7gWkiCKh9/BQhFIHNrkmgC9snWBzDyVxyFvXyt1T69PWSZ9VM4ek4t/KNAdoWxy819ImQvAjf4Xvf4/6631bbREPDpCmI= Received: by 10.82.114.3 with SMTP id m3mr786268buc.2.1203710286092; Fri, 22 Feb 2008 11:58:06 -0800 (PST) Received: by 10.82.160.10 with HTTP; Fri, 22 Feb 2008 11:58:06 -0800 (PST) Message-ID: <560f92640802221158m2332213fp48d67e4cd8e3777a@mail.gmail.com> Date: Fri, 22 Feb 2008 11:58:06 -0800 From: "Nerius Landys" To: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Mouse problems with ALT+TAB on SDL OpenGL non-fullscreen game X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 20:22:21 -0000 Howdy. I am running a video game that is a derivative of quake3. The exact game is called Urban Terror. I'm compiling this game against SDL. This enables me to use ALT+TAB to switch between the game and other desktop apps. I have tried compiling from the ports version (games/iourbanterror) and the plain vanilla non-ports version, and I am getting a problem in both cases. When I run the game in non-fullscreen mode and after I use ALT+TAB to switch to another app and then back to the game, the mouse starts acting funny. It's as if the mouse all of a sudden is limited by some imaginary rectangular region. The expected behavior is that if I move the mouse to the left side, for example, the player will rotate to the left continuously. The behavior that I am getting is that once the mouse is moved to the left (or right) by a certain amount, any further movement in that direction has no effect. Like I'm hitting a wall or something. This problem does not happen if I run the game in fullscreen mode. It's only on non-fullscreen (windowed) mode, and only after I ALT+TAB away from and back to the game. Any ideas what might be causing this? Can it be related to moused? Here is my xorg.conf: Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" RgbPath "/usr/local/share/X11/rgb" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" EndSection Section "Module" Load "extmod" Load "record" Load "dbe" Load "glx" #Load "GLcore" Load "xtrap" #Load "dri" Load "freetype" Load "type1" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" #DisplaySize 470 300 # mm Identifier "Monitor0" VendorName "SAM" ModelName "SyncMaster" ### Comment all HorizSync and VertRefresh values to use DDC: #HorizSync 30.0 - 81.0 #VertRefresh 56.0 - 75.0 Option "DPMS" EndSection Section "Device" Identifier "Card0" Driver "nvidia" VendorName "nVidia Corporation" BoardName "NV35GL [Quadro FX 3000]" BusID "PCI:1:0:0" Option "NoLogo" "true" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection