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



commit f9b1136a84801cb25b98a231fffaae1e17208541
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 808bd50..47cf94b 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -1415,10 +1415,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]