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



commit 1772115baedb6bcdb02027ea90a110f1d19790d2
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 7f1ff47..9b3349e 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -1417,10 +1417,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]