ags icon indicating copy to clipboard operation
ags copied to clipboard

[Xwayland issue] gtk4 project runs in xwayland

Open nx-smul opened this issue 10 months ago • 1 comments

when it try to iniiit a gtk4 project and run it. it opens in xwayland how can i fix thiis?

nx-smul avatar Feb 18 '25 13:02 nx-smul

I guess you are getting this error:

** (gjs:72354): CRITICAL **: 15:22:14.807: window.vala:59: can not initialize layer shell on window: layer shell not supported
tip: running from an xwayland terminal can cause this, for example VsCode

This is quite common when using gtk4 when you forgot to specify the --gtk4 flag for ags

kotontrion avatar Feb 18 '25 14:02 kotontrion

in v3 gtk version is now inferred from the main file

Aylur avatar Jun 27 '25 16:06 Aylur