~eliasnaur/gio

3 2

ConfigEvent for each FrameEvent

Details
Message ID
<CAKY5jJZBugHAtqUK8cx3XHMsDarcp4PS+akbXn8KYKA3N-cneQ@mail.gmail.com>
DKIM signature
pass
Download raw message
On Linux X11 I seem to be getting a ConfigEvent for each FrameEvent.
Is that the intended behavior?

-- Larry
Details
Message ID
<CAMAFT9XK-CN6V-eCDh8cH+bM0ya-3-Yt4-iRJqTSaqR0THtQ2g@mail.gmail.com>
In-Reply-To
<CAKY5jJZBugHAtqUK8cx3XHMsDarcp4PS+akbXn8KYKA3N-cneQ@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On Fri, 19 Apr 2024 at 16:59, Larry Clapp <lclapp.gio@gmail.com> wrote:
>
> On Linux X11 I seem to be getting a ConfigEvent for each FrameEvent.
> Is that the intended behavior?
>

You get a ConfigEvent for every resize because Config.Size changes, but
otherwise no. I tested the kitchen example on X11 by enabling the progress
animation and verified that only FrameEvents were sent.

Do you have a case where you get both ConfigEvent and FrameEvent?

Elias
Details
Message ID
<CAKY5jJanvCmqgsasWMvhh2Gk3ADMPwUim2mKdtsF=uxd1L348A@mail.gmail.com>
In-Reply-To
<CAMAFT9XK-CN6V-eCDh8cH+bM0ya-3-Yt4-iRJqTSaqR0THtQ2g@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
I may've been mistaken when I said "x11", because I get extra
ConfigEvents when I run kitchen with "go run ." but not with
"WAYLAND_DISPLAY=no go run ." So I guess it's a Wayland thing not an
X11 thing. I'm not resizing, the app is just sitting there.

-- L


On Sat, Apr 20, 2024 at 3:15 AM Elias Naur <mail@eliasnaur.com> wrote:
>
> On Fri, 19 Apr 2024 at 16:59, Larry Clapp <lclapp.gio@gmail.com> wrote:
> >
> > On Linux X11 I seem to be getting a ConfigEvent for each FrameEvent.
> > Is that the intended behavior?
> >
>
> You get a ConfigEvent for every resize because Config.Size changes, but
> otherwise no. I tested the kitchen example on X11 by enabling the progress
> animation and verified that only FrameEvents were sent.
>
> Do you have a case where you get both ConfigEvent and FrameEvent?
>
> Elias
Details
Message ID
<CAMAFT9UVcjQq0rsmRrF3PaYAXzay0XryE+xLKnFFQy69A7tcVA@mail.gmail.com>
In-Reply-To
<CAKY5jJanvCmqgsasWMvhh2Gk3ADMPwUim2mKdtsF=uxd1L348A@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On Sat, 20 Apr 2024 at 15:56, Larry Clapp <lclapp.gio@gmail.com> wrote:
>
> I may've been mistaken when I said "x11", because I get extra
> ConfigEvents when I run kitchen with "go run ." but not with
> "WAYLAND_DISPLAY=no go run ." So I guess it's a Wayland thing not an
> X11 thing. I'm not resizing, the app is just sitting there.
>

I did test Wayland, but didn't realize the issue only occurred with client
side decorations which are not enabled on Sway.

The issue should be fixed in the latest Gio.

Thanks,
Elias
Reply to thread Export thread (mbox)