maru_board: set X error handler 48/20848/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 13 May 2014 06:57:10 +0000 (10:57 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Tue, 13 May 2014 07:17:43 +0000 (11:17 +0400)
with VirtGL code out X error handler is
not being set, so set it in board init code

Change-Id: I0531e2307ae1d60bf2c0285e82eca160c95b68ee
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
tizen/src/hw/maru_board.c

index 9dbc7e6..1595cc4 100644 (file)
@@ -95,12 +95,20 @@ MemoryRegion *get_ram_memory(void)
     return global_ram_memory;
 }
 
+#if defined(CONFIG_LINUX)
+static int x_error_handler(Display *dpy, XErrorEvent *e)
+{
+    return 0;
+}
+#endif
+
 /* maru specialized device init */
 static void maru_device_init(void)
 {
     PCIBus *pci_bus = (PCIBus *) object_resolve_path_type("", TYPE_PCI_BUS, NULL);
 
 #if defined(CONFIG_LINUX)
+    XSetErrorHandler(x_error_handler);
     XInitThreads();
     Display *display = XOpenDisplay(0);
     if (!display && !enable_spice) {