On Mon, Feb 22, 2010 at 5:29 AM, daniele_athome <[email protected]> wrote: > Hello, I have another use case for this issue I need to implement myself. > > I use the power button in my own applications to do some actions in > them, but I want to do those actions only on short press; on long > press a lock-app should activate. So my idea was something like > delayed action in enlightenment key bindings: > [0.0 forward_to_client][1.0 simplelock] (it's just an example) > > I can handle this thing in many ways: I can send a dbus message from > the wm (very slow I guess), or I might simulate the keypress on the > application, can I do that?
power is also not a good example. actually, you'll hardly find a good example... because as raster said: you're doing it wrong. As with everything, including people, if you have 2 managers of the same resource, you'll have problems. Either you need locks or some other rules... but you'll likely have inconsistent behavior over time. And sending DBus message is not fast... but far from slow in this use case. See, don't try to push pixels/animations over dbus, but saying it will be slow to deliver a once-in-a-lifetime message to the other peer is incorrect, even the latency will not be much higher than regular mouse/keyboard from X to app. BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
