diff mbox

[1/2] sna: Call EnterVT from sna_screen_init.

Message ID 1374475480-7255-1-git-send-email-christopher.halse.rogers@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

Christopher James Halse Rogers July 22, 2013, 6:44 a.m. UTC
From: Christopher James Halse Rogers <raof@ubuntu.com>

It's documented to do so. It might as well.

---
 src/sna/sna_driver.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index b48ab30..de1384d 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -936,6 +936,8 @@  agp_aperture_size(struct pci_device *dev, int gen)
 	return dev->regions[gen < 030 ? 0 : 2].size;
 }
 
+static Bool sna_enter_vt(VT_FUNC_ARGS_DECL);
+
 static Bool
 sna_screen_init(SCREEN_INIT_ARGS_DECL)
 {
@@ -1072,7 +1074,7 @@  sna_screen_init(SCREEN_INIT_ARGS_DECL)
 
 	sna_uevent_init(scrn);
 
-	return TRUE;
+	return sna_enter_vt(VT_FUNC_ARGS(0));
 }
 
 static void sna_adjust_frame(ADJUST_FRAME_ARGS_DECL)