<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 27 juin 2020 08 h 45, horai <<a href="mailto:ivo.hora@seznam.cz">ivo.hora@seznam.cz</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
I have embedded multiple waylandsink overlays into GTK grid this way (the<br>
eventbox should be responsible for catching mouse clicks as events):<br>
for (int i = 0; i < numberOfRows; i++) {<br>
        for (int j = 0; j < numberOfCols; j++) {<br>
            if (counter <= numberOfStreams) {<br>
<br>
<br>
                eventBox = gtk_event_box_new();<br>
                gtk_widget_set_app_paintable(eventBox, TRUE);<br>
                gtk_widget_set_double_buffered(eventBox, FALSE);<br>
                gtk_widget_set_can_focus(eventBox, FALSE);<br>
                gtk_widget_set_hexpand(eventBox, TRUE);<br>
                gtk_widget_set_vexpand(eventBox, TRUE);<br>
                streamDataArray->streamDataArray[counter].video_widget =<br>
eventBox;<br>
                g_print("widget: %d: %d\r\n", counter, eventBox);<br>
<br>
g_signal_connect(streamDataArray->streamDataArray[counter].video_widget,<br>
"draw", G_CALLBACK(video_widget_draw_cb), streamDataArray);<br>
<br>
g_signal_connect(streamDataArray->streamDataArray[counter].video_widget,<br>
"button_press_event", G_CALLBACK(hideWindow), streamDataArray);<br>
                streamBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);<br>
                gtk_widget_set_can_focus(streamBox, FALSE);<br>
                gtk_widget_set_hexpand(streamBox, TRUE);<br>
                gtk_widget_set_vexpand(streamBox, TRUE);<br>
                gtk_box_pack_start(GTK_BOX(streamBox),<br>
GTK_WIDGET(streamDataArray->streamDataArray[counter].video_widget), TRUE,<br>
TRUE, 0);<br>
                gtk_grid_attach(grid, GTK_WIDGET(streamBox), i, j, 1, 1);<br>
                counter++;<br>
<br>
Upon click on the overlay I want to maximize single stream and hide all the<br>
others via method hideWindow. This code works for 1.14.5 version of<br>
Gstreamer, but does not work for 1.16.2.<br>
We wanted to have fully native Wayland application.<br>
Do you thing this could be a bug? Should I post code which enlights how the<br>
waylandsink is tight to GTK?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Posting code is handy, but before that, could you explain how it fails ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>