maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Event for window focus change? (https://talk.maemo.org/showthread.php?t=86418)

jackburton 2012-08-31 13:58

Event for window focus change?
 
Is there a dbus event or some hook somewhere to detect when the top-level window has changed or gotten focus on the N900?

I want to run a 'renice' command on whichever window is in use at the current time.

myra 2012-09-27 15:30

Re: Event for window focus change?
 
Hey jackburton,

I don't think that there is an event or hook. But you can run a daemon which continuously checks which program is the foreground app.

See here: http://talk.maemo.org/showpost.php?p...6&postcount=10

Hope that helps,
myra

jackburton 2012-09-27 16:08

Re: Event for window focus change?
 
Quote:

Originally Posted by myra (Post 1272961)
Hey jackburton,

I don't think that there is an event or hook. But you can run a daemon which continuously checks which program is the foreground app.

See here: http://talk.maemo.org/showpost.php?p...6&postcount=10

Hope that helps,
myra

Thanks. It's a good idea. I thought of doing this with wmctl as well.

However, I'd like it to be more integrated. Perhaps I could modify matchbox window manager to send a dbus signal?

I've not used dbus before, but this would be a decent hook, I think.

Would I want to make the change to matchbox, hildon-home, or hildon-desktop? Maybe hildon-home and hildon-desktop already have dbus signals for this sort of thing?


All times are GMT. The time now is 09:23.

vBulletin® Version 3.8.8