s->graphic_mode = -1;
vga_update_display(s);
diff --git a/intel.c b/intel.c
-index 62701cc..d603e89 100644
+index 62701cc..1f87945 100644
--- a/intel.c
+++ b/intel.c
@@ -11,6 +11,7 @@
#include "console.h"
#include "sysemu.h"
-@@ -405,24 +406,16 @@ static void intel_focus(int focus)
+@@ -405,28 +406,20 @@ static void intel_focus(int focus)
focus, IntelX, IntelY, IntelPitch);
}
int enter = (int)opaque;
- state = xenstore_dom_read(domid, path, NULL);
-+ if (!(tmp = xenstore_dom_read(domid, path, NULL)))
++ if (!(tmp = xenstore_read(path)))
+ return;
+ state = strtol(tmp, NULL, 10);
+ free(tmp);
if (state == 1)
{
intel_focus(enter);
+- xenstore_dom_write(domid, path, "2");
++ xenstore_write(path, "2");
+ }
+ }
+
+@@ -509,7 +502,7 @@ void intel_display_init(DisplayState *ds)
+ dpy_resize(ds);
+ }
+
+- xenstore_dom_watch(domid, "switcher/enter", intel_enter_leave, (void*)0);
+- xenstore_dom_watch(domid, "switcher/leave", intel_enter_leave, (void*)1);
++ xenstore_dom_watch(domid, "switcher/enter", intel_enter_leave, (void*)1);
++ xenstore_dom_watch(domid, "switcher/leave", intel_enter_leave, (void*)0);
+ lds = ds;
+ }
diff --git a/vl.c b/vl.c
index 6350384..cf7ad19 100644
--- a/vl.c