• [^] # Re: Voici la fonction responsable

    Posté par (site web personnel) . En réponse au message Affichage OSD. Évalué à 2.

    Ça donnerait un code comme ça je pense (reste à tester) :


    static void make_skip_input (GtkWidget *widget)
    {
    GtkAllocation allocation;
    GdkBitmap *mask;

    gtk_widget_get_allocation (widget, &allocation);
    mask = gdk_pixmap_new (gtk_widget_get_window (widget),
    allocation.width,
    allocation.height,
    1);

    /* make the whole window ignore events */
    gdk_window_input_shape_combine_mask (gtk_widget_get_window (widget), mask, 0, 0);
    g_object_unref (mask);
    }

    http://git.gnome.org/cgit/gnome-settings-daemon/tree/plugins(...) (fonction gsd_media_keys_window_real_realize)