This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 343
Send wl_surface_enter when wl_output is bound late #2466
Comments
Lazy IRC log dump of a discussion about this
|
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is unbound or destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is unbound or destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 7, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 8, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 8, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. Likewise, leave events will be sent when the wl_output is destroyed. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 8, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. The API currently exists in parallel with the old one. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 15, 2020
The new API registers which outputs a surface enters, in order to send enter events when wl_output globals are bound after the compositor intended to send enter. This API replaces the previous one, which just sent events directly. It is therefore a breaking change. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 18, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 18, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 18, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
kennylevinsen
added a commit
to kennylevinsen/wlroots
that referenced
this issue
Nov 21, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
emersion
pushed a commit
that referenced
this issue
Nov 23, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: #2466
emersion
pushed a commit
to emersion/wlroots
that referenced
this issue
Nov 25, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
udfn
pushed a commit
to udfn/wlroots
that referenced
this issue
Dec 8, 2020
wlr_surface_send_enter now stores outputs that have been entered. Combined with a new 'bind' event on wlr_output, this allows us to delay enter events as necessary until the respective wl_output global has been bound. Closes: swaywm#2466
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If a client has not bound a wl_output at the time where the compositor calls wlr_surface_send_enter, then no wl_surface_enter event is sent.
As the compositor is unaware of this, and no logic is present to retry when a wl_output object is finally bound by the client, this leaves the client unaware of its current output association.
A solution to this would be to have a wlr_surface_(enter|leave)_output API, where instead of blindly sending an event, we'd instead add the output to a list on the surface, allowing us to send late enter events, and possibly also to send leave events when an output disappears.
Application issue stemming from this: https://codeberg.org/dnkl/foot/issues/182
The text was updated successfully, but these errors were encountered: