[mutter/wip/wayland] wayland: queue modes reset on vt enter



commit 2052c04211fedcd6ebd1176487c7f2dbd1bd6d37
Author: Robert Bragg <robert linux intel com>
Date:   Mon Jan 30 10:49:48 2012 +0000

    wayland: queue modes reset on vt enter
    
    Since the crtc modes aren't always correctly restored automatically we
    now explicitly ask Cogl to reset the modes at the next swap_buffers
    request.

 src/wayland/meta-wayland.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 3831f26..73cd99d 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -1364,10 +1364,15 @@ event_cb (ClutterActor *stage,
 static void
 on_vt_enter (MetaWaylandCompositor *compositor)
 {
+  ClutterBackend *clutter_backend = clutter_get_default_backend ();
+  CoglContext *cogl_context = clutter_backend_get_cogl_context (clutter_backend);
+  CoglDisplay *cogl_display = cogl_context_get_display (cogl_context);
+
   meta_tty_enter_vt (compositor->tty);
 
   if (drmSetMaster (compositor->drm_fd))
     g_critical ("failed to set master: %m\n");
+  cogl_kms_display_queue_modes_reset (cogl_display);
   clutter_actor_queue_redraw (compositor->stage);
   clutter_evdev_reclaim_devices ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]