Re: [hatari-devel] Hatari window embedding issue (was: Preparing hatari 2.3.1)

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

> I think the black area is actually Hatari SDL2
> window, as it seems to be getting the key and
> resize events fine.

socket.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("red"))
in "hatariui.py" colors this window area red. The Hatari SDL2-
window is underneath this area and working correctly ...

> I think SDL2 just isn't refreshing its window
> for some reason.

.... GTK3 is covering it, even with "SDL_WINDOW_ALWAYS_ON_TOP".

>> Disabling the "Embedded window ID change"
> What this means?

diff --git a/python-ui/hatariui.py b/python-ui/hatariui.py
index dbca36d2..566e87b1 100755
--- a/python-ui/hatariui.py
+++ b/python-ui/hatariui.py
@@ -195,7 +195,7 @@ class UICallbacks:
             self.hatari.enable_embed_info()
             socket = self.hatari.get_control_socket().fileno()
             events = GObject.IO_IN | GObject.IO_HUP | GObject.IO_ERR
-            self.io_id = GObject.io_add_watch(socket, events, self._socket_cb)
+            # self.io_id = GObject.io_add_watch(socket, events, self._socket_cb)
             # all keyboard events should go to Hatari window
             self.hatariwin.grab_focus()
         else:

Jens



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/