On Saturday 18 January 2014 12:53:10 Martin Klapetek wrote: > On Sat, Jan 18, 2014 at 12:25 PM, Martin Graesslin <mgraess...@kde.org>wrote: > > On Monday 13 January 2014 18:46:28 Martin Klapetek wrote: > > > Hey all, > > > > > > following are the notes from the "New OSD in Plasma 2" discussion we had > > > here at the Plasma sprint. > > > > > > The basic idea is that the shell should provide a way for certain apps > > > to > > > display a short passive transient notification. That includes things > > > like > > > when user changes brightness, volume, changes the keyboard layout, > > > > virtual > > > > > desktop or activity and possibly few others. > > > > > > This would be handled over DBus with custom QML files doing the > > > > rendering. > > > > > The flow is as follows: user changes volume - kmix sends a dbus signal - > > > plasma has a slot handling that signal - plasma loads the QML file for > > > rendering and puts it on screen with special window class - kwin gives > > > it > > > extra love cause of the win class. > > > > I had some thought on the "KWin gives it extra love" and how we can > > identify > > the window. The preferred way on my side would be a window type and there > > is > > one existing type which we might reuse: _NET_WM_WINDOW_TYPE_NOTIFICATION > > [1]. > > We have complete support for it in KWin and KWindowsystem as > > NET::Notification > > in NET::WindowTypes enum. KWin recognizes the notification and does > > nothing > > with it [2]. To be more precise KWin does not support the window type for > > managed windows, only for override redirect windows. That's easy to > > change, > > though. > > Who should do the positioning? Plasma or KWin?
I don't care, but I would say Plasma. I think that simplifies it given that you have to set x/y anyway. > Truth is you don't need to know the /exact/ brightness or volume level in > fullscreen video, you simply fiddle with it until it suits you. In this > case it's maybe not as much about showing the exact percentage, but about > providing visual feedback that you hit the correct keys and that they are > working - I can imagine cases where users will press it couple times more > to actually check if the brightness controls do work. The main problem I used to have is when powerdevil changes the brightness, especially when e.g. a TV is connected to the system. Kind of useless then. > > Changing the layer order would be easy afterwards right? I guess we could > try your proposal and see how it works in practice. Yes, that would be very easy. Cheers Martin
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel