def window_bell(self, window, device, percent, pitch, duration, bell_class, bell_id, bell_name): gdkwindow = None if window: gdkwindow = window.get_window() if gdkwindow is None: gdkwindow = gdk.get_default_root_window() log("window_bell(..) gdkwindow=%s", gdkwindow) if not system_bell(gdkwindow, device, percent, pitch, duration, bell_class, bell_id, bell_name): #fallback to simple beep: gdk.beep()
def window_bell(self, window, device, percent, pitch, duration, bell_class, bell_id, bell_name): gdkwindow = None if window: gdkwindow = window.get_window() if gdkwindow is None: gdkwindow = self.get_root_window() log("window_bell(..) gdkwindow=%s", gdkwindow) if not system_bell(gdkwindow, device, percent, pitch, duration, bell_class, bell_id, bell_name): #fallback to simple beep: gdk.beep()
def window_bell(self, window, device, percent, pitch, duration, bell_class, bell_id, bell_name): gdkwindow = None if window: gdkwindow = window.get_window() if gdkwindow is None: gdkwindow = self.get_root_window() log("window_bell(..) gdkwindow=%s", gdkwindow) if not system_bell(gdkwindow, device, percent, pitch, duration, bell_class, bell_id, bell_name): #fallback to simple beep: gdk.beep() driver_info = self.opengl_props.get("renderer") or self.opengl_props.get("vendor") or "unknown card" if self.opengl_enabled: opengllog.info("OpenGL enabled with %s", driver_info) elif self.client_supports_opengl: opengllog("OpenGL supported with %s, but not enabled", driver_info)
def window_bell(self, window, device, percent, pitch, duration, bell_class, bell_id, bell_name): gdkwindow = None if window: gdkwindow = window.get_window() if gdkwindow is None: gdkwindow = self.get_root_window() log("window_bell(..) gdkwindow=%s", gdkwindow) if not system_bell(gdkwindow, device, percent, pitch, duration, bell_class, bell_id, bell_name): #fallback to simple beep: gdk.beep() driver_info = self.opengl_props.get( "renderer") or self.opengl_props.get( "vendor") or "unknown card" if self.opengl_enabled: opengllog.info("OpenGL enabled with %s", driver_info) elif self.client_supports_opengl: opengllog("OpenGL supported with %s, but not enabled", driver_info)
def bell(self, *_args): from xpra.platform.gui import system_bell system_bell(self.get_window(), 0, 100, 2000, 1000, 0, 0, "test")