winex11.drv: X11DRV_Beep fix

Alexander Morozov amorozov at etersoft.ru
Fri May 23 09:23:12 CDT 2008


Changelog:
X11DRV_Beep fix

Such test program do not produce a beep sound without this patch:

#include "windows.h"

int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
        LPSTR lpszCmdLine, int nCmdShow)
{
    MessageBeep(-1);

    return 0;
}
-------------- next part --------------
From d5d01cf28690806947587fcd94214e8e2dac5578 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov at etersoft.ru>
Date: Fri, 23 May 2008 17:54:13 +0400
Subject: [PATCH] X11DRV_Beep fix

---
 dlls/winex11.drv/keyboard.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 968c5d0..decf95f 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -2637,5 +2637,6 @@ void X11DRV_Beep(void)
 {
     wine_tsx11_lock();
     XBell(thread_display(), 0);
+    XSync(thread_display(), False);
     wine_tsx11_unlock();
 }
-- 
1.5.4.5.GIT



More information about the wine-patches mailing list