Commit ef19590d authored by Yann Leboulanger's avatar Yann Leboulanger

get xid for windows correctly

parent 76f8b9e9
......@@ -2214,12 +2214,21 @@ class ChatControl(ChatControlBase):
fixed = self.xml.get_object('outgoing_fixed')
fixed.set_no_show_all(False)
video_hbox.show_all()
out_xid = self.xml.get_object('outgoing_drawingarea').\
window.xid
if os.name == 'nt':
out_xid = self.xml.get_object(
'outgoing_drawingarea').window.handle
else:
out_xid = self.xml.get_object(
'outgoing_drawingarea').window.xid
else:
out_xid = None
video_hbox.show_all()
in_xid = self.xml.get_object('incoming_drawingarea').window.xid
if os.name == 'nt':
in_xid = self.xml.get_object('incoming_drawingarea').\
window.handle
else:
in_xid = self.xml.get_object('incoming_drawingarea').\
window.xid
sid = gajim.connections[self.account].start_video(
self.contact.get_full_jid(), in_xid, out_xid)
else:
......
......@@ -5345,12 +5345,21 @@ class VoIPCallReceivedDialog(object):
fixed = ctrl.xml.get_object('outgoing_fixed')
fixed.set_no_show_all(False)
video_hbox.show_all()
in_xid = ctrl.xml.get_object('incoming_drawingarea').window.xid
if os.name == 'nt':
in_xid = ctrl.xml.get_object('incoming_drawingarea').\
window.handle
else:
in_xid = ctrl.xml.get_object('incoming_drawingarea').\
window.xid
content = session.get_content('video')
# move outgoing stream to chat window
if gajim.config.get('video_see_self'):
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
window.xid
if os.name == 'nt':
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
window.handle
else:
out_xid = ctrl.xml.get_object('outgoing_drawingarea').\
window.xid
b = content.src_bin
found = False
for e in b.elements():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment