From Elias Naur to ~eliasnaur/gio
On Wed Jan 27, 2021 at 22:27 CET, Loki Verloren wrote: > Some future work I have in mind entails being able to run separate processes, communicating > via pipes, and I'm wondering, as I haven't looked closely, whether Ops and Events are > > serializable, and can be reconstituted and executed? Or is there some closures in there? > The FrameEvent contains a Frame callback, and some ops refer to data. For example, ImageOp refer to an *image.NRGBA. Elias
From Elias Naur to ~eliasnaur/gio
On Wed Jan 27, 2021 at 23:45 CET, Zhao Wang wrote: > This works, thank you! > > On Wed, Jan 27, 2021 at 8:45 AM Elias Naur <mail@eliasnaur.com> wrote: > > > > On Tue Jan 26, 2021 at 23:41 CET, Zhao Wang wrote: > > > On Tue, Jan 26, 2021 at 5:51 AM Elias Naur <mail@eliasnaur.com> wrote: > > > > On Mon Jan 25, 2021 at 17:40, Zhao Wang wrote: > > > > > On Mon, Jan 25, 2021 at 2:05 AM Elias Naur <mail@eliasnaur.com> wrote: > > > > > > On Mon Jan 25, 2021 at 8:43 AM CET, Zhao Wang wrote: > > > > > > > I just tried the GLFW example on windows, it failed as expected as > > > > > > > shown by the attachment. > > > > > > > > > > > > > > It panic when trying to GetString for Extension during initializing a
From Elias Naur to ~eliasnaur/gio-patches
Thanks, merged.
From Elias Naur to ~eliasnaur/gio-patches
Nice and clean. Thanks! Elias
From Elias Naur to ~eliasnaur/gio-patches
Nice. Merged. On Wed Jan 27, 2021 at 19:47, ~pierrec wrote: > From: pierre <pierre.curto@gmail.com> > > Cursor and Enter/Leave events should follow the same rules, specifically: > when pointerInfo.pressed is true, Enter/Leave processing ignores > pointer.Areas not hit during the pointer.Press event. > > diff --git a/io/router/pointer.go b/io/router/pointer.go > index 1ba81a2..149ade7 100644 > --- a/io/router/pointer.go > +++ b/io/router/pointer.go > @@ -357,7 +341,18 @@ func (q *pointerQueue) deliverEvent(p *pointerInfo, events *handlerEvents, e poi
From Elias Naur to ~eliasnaur/gio-patches
Thanks! Merged. Elias
From Elias Naur to ~eliasnaur/gio-patches
Thanks, merged. A small bit below for some future patch. On Wed Jan 27, 2021 at 16:32, ~pierrec wrote: > From: pierre <pierre.curto@gmail.com> > diff --git a/app/internal/window/os_windows.go b/app/internal/window/os_windows.go > index ae29073..4014d5f 100644 > --- a/app/internal/window/os_windows.go > +++ b/app/internal/window/os_windows.go > @@ -309,7 +316,13 @@ func windowProc(hwnd syscall.Handle, msg uint32, wParam, lParam uintptr) uintptr > } > } > case windows.WM_SETCURSOR: > - windows.SetCursor(w.cursor) > + w.cursorIn = (lParam & 0xffff) == windows.HTCLIENT
From Elias Naur to ~eliasnaur/gio
On Tue Jan 26, 2021 at 23:41 CET, Zhao Wang wrote: > On Tue, Jan 26, 2021 at 5:51 AM Elias Naur <mail@eliasnaur.com> wrote: > > On Mon Jan 25, 2021 at 17:40, Zhao Wang wrote: > > > On Mon, Jan 25, 2021 at 2:05 AM Elias Naur <mail@eliasnaur.com> wrote: > > > > On Mon Jan 25, 2021 at 8:43 AM CET, Zhao Wang wrote: > > > > > I just tried the GLFW example on windows, it failed as expected as > > > > > shown by the attachment. > > > > > > > > > > It panic when trying to GetString for Extension during initializing a > > > > > new backend. > > > > > > > > > > > > > The OpenGL backend depends on ANGLE to work. I have an old build here[0] > > > > if you like. Place the DLLs in the same directory as the GLFW binary (or
From Elias Naur to ~eliasnaur/gio-patches
On Wed Jan 27, 2021 at 16:26 CET, Pierre Curto wrote: > Le mer. 27 janv. 2021 à 10:56, Elias Naur <mail@eliasnaur.com> a écrit : > > > > On Wed Jan 27, 2021 at 09:36, ~pierrec wrote: > > > From: pierre <pierre.curto@gmail.com> > > > > > > Add support to Router so that the cursor can be changed with CursorNameOp without any mouse movement. > > > > > > diff --git a/io/router/pointer.go b/io/router/pointer.go > > > index 1ba81a2..a12ba44 100644 > > > --- a/io/router/pointer.go > > > +++ b/io/router/pointer.go > > > @@ -47,6 +47,7 @@ type pointerInfo struct { > > > id pointer.ID
From Elias Naur to ~eliasnaur/gio-patches
On Wed Jan 27, 2021 at 16:11 CET, ~pierrec wrote: > From: pierre <pierre.curto@gmail.com> > > Post a dedicated message upon Window.SetCursor calls. > Make sure that the cursor is only changed if the cursor is in the window. > > diff --git a/app/internal/window/os_windows.go b/app/internal/window/os_windows.go > index ae29073..d26d30d 100644 > --- a/app/internal/window/os_windows.go > +++ b/app/internal/window/os_windows.go > @@ -46,6 +46,7 @@ type window struct { > height int > stage system.Stage > pointerBtns pointer.Buttons