After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791939 - Add xdg-shell (stable) support
Add xdg-shell (stable) support
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.93.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
https://gitlab.gnome.org/GNOME/gtk/me...
Depends on:
Blocks:
 
 
Reported: 2017-12-25 06:52 UTC by Jonas Ådahl
Modified: 2018-05-02 19:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wayland: Add support for xdg-shell stable (61.65 KB, patch)
2017-12-25 06:53 UTC, Jonas Ådahl
none Details | Review
wayland: Minor whitespace cleanups (1.78 KB, patch)
2017-12-25 06:53 UTC, Jonas Ådahl
none Details | Review

Description Jonas Ådahl 2017-12-25 06:52:58 UTC
Add support for the stable xdg-shell protocol. It adds support alongside
xdg-shell unstable v6, but will only fall back to the unstable version if the
stable version is not advertised by the display server.
Comment 1 Jonas Ådahl 2017-12-25 06:53:03 UTC
Created attachment 365963 [details] [review]
wayland: Add support for xdg-shell stable

This commit adds support the stable version of the xdg-shell protocol.
Support for the last version of the unstable series is left intact, but
will not receive new features.

The stable version is prioritized above the older version.
Comment 2 Jonas Ådahl 2017-12-25 06:53:16 UTC
Created attachment 365964 [details] [review]
wayland: Minor whitespace cleanups

Broke up a long line, added an empty one, and indented another one.
Comment 3 Matthias Clasen 2017-12-25 18:51:03 UTC
I have trouble getting this to generate the protocol sources. Maybe I'm missing something.

If it works for you, can also do a similar patch for master ?
Comment 4 Jonas Ådahl 2017-12-26 02:58:13 UTC
What's the error when generating protocol sources?

Regarding master, I was thinking of just replacing xdg_shell unstable v6 with xdg_shell stable, dropping the support for the old. Or is there any point in supporting legacy protocol in gtk4?
Comment 5 Matthias Clasen 2017-12-26 16:41:38 UTC
(In reply to Jonas Ådahl from comment #4)
> What's the error when generating protocol sources?

They just don't seem to get generated... I've re-autogen'ed, and still, no sign of these files after a build.
Comment 6 Jonas Ådahl 2017-12-27 01:43:27 UTC
(In reply to Matthias Clasen from comment #5)
> (In reply to Jonas Ådahl from comment #4)
> > What's the error when generating protocol sources?
> 
> They just don't seem to get generated... I've re-autogen'ed, and still, no
> sign of these files after a build.

Strange. I just tried

git clean -fdx
./autogen
make -C gdk -j8

It built fine and I can see gdk/wayland/xdg-shell-client-protocol.h in there. Can you double check that wayland-protocols 1.12 is the version installed? It seems autotools will automagically disable the wayland backend if the version is not new enough when you run autogen.sh.
Comment 7 Daniel Stone 2017-12-27 14:44:49 UTC
(In reply to Jonas Ådahl from comment #4)
> Regarding master, I was thinking of just replacing xdg_shell unstable v6
> with xdg_shell stable, dropping the support for the old. Or is there any
> point in supporting legacy protocol in gtk4?

Weston doesn't have a stable xdg_shell implementation yet, right?
Comment 8 Jonas Ådahl 2017-12-27 15:46:40 UTC
(In reply to Daniel Stone from comment #7)
> (In reply to Jonas Ådahl from comment #4)
> > Regarding master, I was thinking of just replacing xdg_shell unstable v6
> > with xdg_shell stable, dropping the support for the old. Or is there any
> > point in supporting legacy protocol in gtk4?
> 
> Weston doesn't have a stable xdg_shell implementation yet, right?

Not that I know of. I guess an alternative is to wait with replacing it until it has one. My point is mostly that it'd be nice to start with a "clean slate" with gtk4 with less legacy cruft.
Comment 9 Matthias Clasen 2017-12-28 13:47:27 UTC
Ah, I have an older version of wayland-protocols in my jhbuild tree. Building against the one in /usr worked. So, looks good to go then, as far as I'm concerned. Can you look bringing this to master, too ?
Comment 11 GNOME Infrastructure Team 2018-05-02 19:38:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/999.