ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.18k stars 173 forks source link

Half-life: can't use weapon when looking down #910

Closed LinAGKar closed 11 years ago

LinAGKar commented 11 years ago

When I look straight down or almost straight down in Half-life I can't fire weapons (neither primary nor secondary fire, including the crowbar).

Processor:
    Leverantör:  GenuineIntel
    Hastighet: 2001 MHz
    8 logiska processorer
    4 fysikprocessorer
    HyperThreading:  Stöds
    FCMOV:  Stöds
    SSE2:  Stöds
    SSE3:  Stöds
    SSSE3:  Stöds
    SSE4a:  Stöds inte
    SSE41:  Stöds
    SSE42:  Stöds

Nätverk:
    Nätverkshastighet:  Mhz

Windows-version:
    "openSUSE 12.2 (x86_64)" (64 bitar)
    Kernelnamn: Linux
    Kernelversion: 3.4.11-2.16-desktop
    X Serverleverantör: The X.Org Foundation
    X Serverversion: 11203000

Grafikkort:
    Drivrutin:  Tungsten Graphics, Inc Mesa DRI Intel(R) Sandybridge Mobile x86/MMX/SSE2

    Version av drivrutin:  3.0 Mesa 8.0.4
    Skrivbordets färgdjup: 24 bitar per pixel
    Skärmens uppdateringshastighet: 60 Hz
    Leverantörs-ID hittades inte
    Enhets-ID hittades inte
    Antal skärmar:  1
    Antal grafikkort hittades inte
    Primär skärmupplösning:  1920 x 1080
    Skrivbordsupplösning: 1920 x 1080
    Primär skärmstorlek: 15,04" x 8,46"  (17,24" diag)
                                      38,2 cm x 21,5 cm  (43,8 cm diag)
    Primär VRAM hittades inte

Ljudkort:
    Ljudenhet: Intel CougarPoint HDMI

Minne:
    Arbetsminne:  7910 MB

Övrigt:
    Gränssnittsspråk:  Svenska
    LANG:  sv_SE.UTF-8
    Mikrofon:  Not set
    Totalt tillgängligt hårddiskutrymme:  234729 MB
    Största lediga hårddiskblock:  40308 MB

Installerad programvara:

Nyligen inträffade felrapporter:
    Fri Jan 25 19:46:29 2013 GMT: file ''/tmp/dumps/assert_20130125204550_1.dmp'', upload yes: ''CrashID=bp-4d7f1035-3c9a-46e7-85fe-b1ce62130125''
    Fri Jan 25 19:50:39 2013 GMT: file ''/tmp/dumps/assert_20130125205005_2.dmp'', upload yes: ''CrashID=bp-56483820-e94d-46e5-8dfb-c9efa2130125''
    Fri Jan 25 21:33:02 2013 GMT: file ''/tmp/dumps/assert_20130125223237_1.dmp'', upload yes: ''CrashID=bp-be033905-12f5-4d3d-a269-c4c882130125''
alfred-valve commented 11 years ago

I cannot reproduce this, can you still cause it to happen?

LinAGKar commented 11 years ago

Yes, just look straight down and try to shoot.

johndrinkwater commented 11 years ago

Can’t reproduce either, I can crowbar my toes and stand on the edge of walls and shoot down at troops. Could your window manager/desktop have its bottom panel absorbing the click or something?

LinAGKar commented 11 years ago

That might be it, I moved the panel to the top and suddenly I can shoot straight down but not straight up. I'm using KDE plasma.

alfred-valve commented 11 years ago

Closing this out, looks like a window manager issue. The fixes/changes for alt-tab to work on linux may also help here, #906

LinAGKar commented 11 years ago

Shouldn't the game keep the pointer to the center? cl_mousegrab 0 seems to fix this but then doing anything with the mouse cansels anython else I'm doing with the mouse e.g. if if I am moving the camera and I start holding LMB the camera will stop moving. I am already able to alt-tab just fine.

alfred-valve commented 11 years ago

The game uses an X windows call to cause the mouse to be stuck in the window (when cl_mousegrab is 1), so in theory it should just work and never be overridden. It sounds like your window manager is misbehaving and not respecting this grab. When cl_mousegrab is set to 0 we don't set the grab, instead we just manually slam the mouse position each frame, working around your WM bug. The not being able to move and click with mousegrab 0 sounds like a legit issue, open a new (separate bug) to report it please.

LinAGKar commented 11 years ago

This seems to be specific to these GoldSrc games though, I haven't tried any Source games but other non-Steam FPSes seems to work fine. Also this problem only seems to occur when the panel is set to "auto hide" or "windows can cover" but not when it's set to "always visible" or "windows go below".