Re: [hatari-devel] Hatari window embedding issue (was: Preparing hatari 2.3.1) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari window embedding issue (was: Preparing hatari 2.3.1)
- From: Jens Guenther <dbotw@xxxxxxx>
- Date: Wed, 16 Dec 2020 19:38:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608143919; bh=6pCTn5WH5AvpyzVby9LlkVJ3L0xYEiB4Qp+b3hFItjs=; h=X-UI-Sender-Class:Date:From:To:Subject:In-Reply-To:References; b=YSnxVtKc0+a0SXCTdjDwXJeBQ5Emk9R0MsBeDv/SnVOT9QRxHwduBmUE1TZk3ugPE thCbK2z4e0uhhfCjon+2QV7DRKpR7w9SISo8jXT03g/Ep22R1BwNdCVx4yBrY9PUFd SgSOH4lx5wQ7U6V0gmCZEePjCtF+9cEODdv18ZFo=
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