Hi, Am 05.11.2014 um 04:39 schrieb Rob Hoelz: [...] > My problem is this: when I see a web notification > (https://developer.mozilla.org/en-US/docs/Web/API/notification) > displayed, it always appears on screen 0 of my two monitor set up, even > if the browser displaying the notification is on screen 1. As I tend > to put "back burner" stuff on screen 0 and primarily work off of screen > 1, this causes me to sometimes miss web notifications, which is pretty > annoying. > > Ideally, I would like them to show up in the upper right corner of > screen 1, where I have naughty displaying its notifications. However, > after digging around, I've found that the X11 windows used to implement > these notifications do not generate client manage events; in fact, they > don't generate any events that are exposed to the Lua API, as far as I > can tell. It seems that they generate a map notify (rather than a map > request, and not to be confused with a mapping notify) event, which > awesome doesn't seem to handle.
Firefox doesn't like naughty's implementation of the notification spec because it does not implement actions (see e.g. [0]). As a result, firefox uses its own, built-in "notification daemon" replacement. > Has anyone seen this behavior and come with a good solution for their > rc.lua? If not, developers of awesome: would you be open to a patch > exposing map notify events via the Lua API so that users may handle > this scenario? [...] What exactly would you want to do with those map notify events? They can't really be used for anything. Firefox shows its notifications through windows with override_redirect=1. This property means "dear WM, I know better than you, do not dare to touch this window". This is why awesome doesn't generate a manage event for these windows. It doesn't get many events for these windows from the X server either. So to awesome (and thus to lua code) these windows don't exist and there is not much else that we can do. Other kinds of override_redirect=1 windows are e.g. menus and tooltips. Cheers, Uli [0]: http://askubuntu.com/questions/33614/why-do-firefox-and-thunderbird-not-use-notify-osd -- "Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?" -- A. P. J. -- To unsubscribe, send mail to [email protected].
