mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Fix gdk_window_beep
This commit is contained in:
parent
14185f8f13
commit
e28876d95e
@ -1,3 +1,8 @@
|
||||
2006-08-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_beep): Only use XKB
|
||||
for beeping if we are using XKB.
|
||||
|
||||
2006-08-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/gdkwindow.h:
|
||||
|
@ -6329,13 +6329,19 @@ gdk_window_configure_finished (GdkWindow *window)
|
||||
void
|
||||
gdk_window_beep (GdkWindow *window)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
|
||||
display = GDK_WINDOW_DISPLAY (window);
|
||||
|
||||
#ifdef HAVE_XKB
|
||||
XkbBell (GDK_WINDOW_XDISPLAY (window),
|
||||
GDK_WINDOW_XID (window),
|
||||
0,
|
||||
None);
|
||||
if (GDK_DISPLAY_X11 (display)->use_xkb)
|
||||
XkbBell (GDK_DISPLAY_XDISPLAY (display),
|
||||
GDK_WINDOW_XID (window),
|
||||
0,
|
||||
None);
|
||||
else
|
||||
#else
|
||||
gdk_display_beep (GDK_WINDOW_DISPLAY (window));
|
||||
gdk_display_beep (display);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user