Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widget is windowed instead of begin on the upper layer on hyprland #75

Closed
its-darsh opened this issue Sep 2, 2023 · 3 comments
Closed

Comments

@its-darsh
Copy link

image


Info

  • OS: ArchLinux
  • Kernel: 6.4.7-arch1-2
  • WM: Hyprland (built from git)

Used example from the wiki, this issue is completely random and it happens to me with eww sometimes as well, Example sometime worky sometime not
I'm not sure if this is a wlroots issue or ags issue...


Logs

(ags:349369): Gtk-WARNING **: 06:55:11.914: Theme parsing error: gtk.css:6703:68: Invalid name of pseudo-class

** (ags:349369): CRITICAL **: 06:55:11.973: gtk_wayland_init_if_needed: assertion 'GDK_IS_WAYLAND_DISPLAY (gdk_display)' failed

** (ags:349369): CRITICAL **: 06:55:11.973: layer_surface_new: assertion 'gtk_wayland_get_layer_shell_global ()' failed

** (ags:349369): WARNING **: 06:55:11.973: Falling back to XDG shell instead of Layer Shell (surface should appear but layer features will not work)

** (ags:349369): CRITICAL **: 06:55:11.973: xdg_toplevel_surface_new: assertion 'gtk_wayland_get_xdg_wm_base_global ()' failed

** (ags:349369): WARNING **: 06:55:11.973: Shell does not support XDG shell stable. Falling back to default GTK behavior

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

** (ags:349369): CRITICAL **: 06:55:11.973: GtkWindow is not a layer surface. Make sure you called gtk_layer_init_for_window ()

(ags:349369): Gjs-WARNING **: 06:55:11.990: JS ERROR: Gtk.CssProviderError: <broken file>:1:0Failed to import: Error opening file /home/darsh/.config/ags/style.css: No such file or directory
applyCss@resource:///com/github/Aylur/ags/app.js:52:21
_load@resource:///com/github/Aylur/ags/app.js:138:21
async*vfunc_activate@resource:///com/github/Aylur/ags/app.js:75:14
_init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34
@its-darsh
Copy link
Author

well, the widget seems to be running on Xwayland for some reason...
image

@its-darsh
Copy link
Author

it works now :3
image

@Jappie3
Copy link
Contributor

Jappie3 commented Oct 6, 2023

For anyone stumbling on this in the future: I also had this problem when ags was launched by Hyprland on startup. When launching it manually later, it was not windowed but overlayed correctly as a bar. Setting the env var WAYLAND_DISPLAY=wayland-1 before launching solved the problem, e.g. like this (in your Hyprland config): exec=WAYLAND_DISPLAY=wayland-1 ags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants