GithubHelp home page GithubHelp logo

Better support for notifications about labwc HOT 13 CLOSED

labwc avatar labwc commented on May 26, 2024
Better support for notifications

from labwc.

Comments (13)

johanmalm avatar johanmalm commented on May 26, 2024

I've been able to reproduce.

The notifications must be WLR_XDG_SURFACE_TOP_LEVEL (https://github.com/johanmalm/labwc/blob/a67e74670b581a8abbd7542a3c41f97a721e89f1/src/xdg.c#L387)

And we center WLR_XDG_SURFACE_TOP_LEVEL surfaces which are not topmost (i.e. have a parent)
https://github.com/johanmalm/labwc/blob/a67e74670b581a8abbd7542a3c41f97a721e89f1/src/xdg.c#L285

Something obviously isn't quite right. Need to investigate.

I've not used Thunderbird for a long time, but it looks very GTK3ish, so am pretty sure it's Wayland. Also, the alt-tab dialog shows it's xdg-shell. Or did I misunderstand your xeyes note.

from labwc.

Joshua-Ashton avatar Joshua-Ashton commented on May 26, 2024

Yeah, I was not aware of it showing in alt-tab. Typically on other compositors, a good way of testing if Wayland vs XWayland is to use Xeyes. If the eyes move, the window is XWayland, if they stop, it's Wayland.

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

The thunderbird notification is a WLR_XDG_SURFACE_TOP_LEVEL and doesn't seem to have a parent. Not sure how to deal with this one. Help needed.

from labwc.

 avatar commented on May 26, 2024

It could possibly be because we aren't handling the toplevel's set_parent event. However, if this problem doesn't occur in Sway, then that isn't likely to be the case. Sway doesn't handle set_parent events either.
Not sure how useful this may be, but this makes me think of sevz17/dwl@57f4d64. In that case, a client's parent was found using their process ids.

from labwc.

Joshua-Ashton avatar Joshua-Ashton commented on May 26, 2024

The notifications should appear without ssd and in the bottom right corner of the screen. They shouldnt be parented I think. This works in plasma and gnome wayland

from labwc.

emersion avatar emersion commented on May 26, 2024

Typically notifications on GNOME/KDE go through the org.freedesktop.Notifications D-Bus API. There exists layer-shell clients that implement this API, e.g. mako.

from labwc.

Joshua-Ashton avatar Joshua-Ashton commented on May 26, 2024

Tested it, and it does use a native notifications thing on KDE, yeah. Thanks for the tip! :)

from labwc.

Joshua-Ashton avatar Joshua-Ashton commented on May 26, 2024

Installing mako fixed the problem.

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

I've just installed mako + rebooted, but still get the notification with SSD in the middle of the screen.
I tried with sway yesterday without mako, and interestingly it knows not to draw the blue titlebar and positions it in the bottom right (although on a different output).

from labwc.

 avatar commented on May 26, 2024

Maybe you could check out emersion/mako#126?

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

Maybe you could check out emersion/mako#126?

Thanks @ARDiDo . I've got libnotify installed. Have tried disabling/enabling alerts in Thunderbird. Will have to carry out trying tomorrow.

from labwc.

Joshua-Ashton avatar Joshua-Ashton commented on May 26, 2024

I had to start mako in my autostart script fwiw

from labwc.

johanmalm avatar johanmalm commented on May 26, 2024

Thanks @Joshua-Ashton
Yes, starting mako helps 😄
I thought I had sorted it with systemctl enable mako, but obviously not.

from labwc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.