summaryrefslogtreecommitdiffstats
path: root/client/x11/platform.cpp
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2009-12-28 01:15:08 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-12-28 12:38:58 +0200
commit68fb44012982897ea883b336c56d0e8c12ddce0d (patch)
tree209556db04762b5f5f7581af4f51970f04e8d836 /client/x11/platform.cpp
parent659be313a43fc741ed9decd95178efbeedf2c4fd (diff)
downloadspice-68fb44012982897ea883b336c56d0e8c12ddce0d.tar.gz
spice-68fb44012982897ea883b336c56d0e8c12ddce0d.tar.xz
spice-68fb44012982897ea883b336c56d0e8c12ddce0d.zip
client: add GUI infrastructure + functional login dialog
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r--client/x11/platform.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index d13c9fe6..1a98e2ed 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -249,6 +249,15 @@ uint64_t Platform::get_thread_id()
return uint64_t(syscall(SYS_gettid));
}
+void Platform::error_beep()
+{
+ if (!x_display) {
+ return;
+ }
+
+ XBell(x_display, 0);
+}
+
void Platform::msleep(unsigned int millisec)
{
usleep(millisec * 1000);