--- mutter-moblin/src/moblin-netbook.c 2009-08-04 16:56:35.000000000 +0530 +++ mutter-moblin/src/moblin-netbook.c 2009-08-05 01:25:30.000000000 +0530 @@ -1163,7 +1163,57 @@ map (MutterPlugin *plugin, MutterWindow * * We want to narrow this down before calling XGetProperty(). */ - if (wm_class && !strcmp (wm_class, "Scim-panel-gtk")) + + if (wm_class && !strcmp(wm_class, "hardware-osd")) + { + if ((panel = (MnbPanel*)mnb_toolbar_get_active_panel (toolbar))) + { + ClutterActor *clone = clutter_clone_new (CLUTTER_ACTOR(mcw)); + MetaScreen *screen = mutter_plugin_get_screen (plugin); + ClutterActor *stage = mutter_get_stage_for_screen (screen); + gfloat x, y; + + /* + * Let the compositor to finish up mapping of this window. + */ + mutter_plugin_effect_completed (plugin, mcw, + MUTTER_PLUGIN_MAP); + + clutter_container_add_actor (CLUTTER_CONTAINER (stage), + clone); + clutter_actor_raise_top (clone); + clutter_actor_show (clone); + + g_signal_connect (mutter_window_get_texture (mcw), + "notify::allocation", + G_CALLBACK (scim_preview_texture_allocation_cb), + clone); + + g_signal_connect (mw, + "raised", + G_CALLBACK (scim_preview_raised_cb), + clone); + + g_signal_connect (mcw, "notify::allocation", + G_CALLBACK (scim_preview_allocation_cb), + clone); + + g_signal_connect (mcw, "destroy", + G_CALLBACK (scim_preview_destroy_cb), + clone); + + g_signal_connect (mutter_window_get_texture (mcw), + "queue-redraw", + G_CALLBACK (scim_preview_queue_redraw_cb), + clone); + + g_signal_connect (mcw, "parent-set", + G_CALLBACK (scim_preview_parent_set_cb), + clone); + } + + } + if (wm_class && (!strcmp (wm_class, "Scim-panel-gtk"))) { if ((panel = (MnbPanel*)mnb_toolbar_get_active_panel (toolbar))) {