Reply
Thread Tools
Posts: 13 | Thanked: 0 times | Joined on May 2010
#1
I am developing a native X application that is thus not using GTK. As a result, it seems that system does not automatically provide "End current task" option at the power-switch menu, as it does for the GTK aplications.

Is there a way to get the "End current task" item into the power-switch menu by means of X API or something else (d-bus?) ? I would really apprepriate help because the problem is blocking us from releasing the application.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
What's the output of running xprop on the application?
 
Posts: 13 | Thanked: 0 times | Joined on May 2010
#3
_MB_CURRENT_APP_WINDOW(WINDOW): window id # 0x2600002
_HILDON_NON_COMPOSITED_WINDOW(INTEGER) = 1
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_FULLSCREEN
_NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN
WM_ICON_NAME(STRING) = "Gas-Balls"
WM_NAME(STRING) = "Gas-Balls"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW

Well?
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#4
Here is some discussion about "End current task"
https://bugs.maemo.org/show_bug.cgi?id=6175

Maybe, you will be able to understand what is required to have the button showing.
 
Posts: 3 | Thanked: 10 times | Joined on Jun 2010
#5
Hi, I too am trying to port a native X app (a cool free game that runs in fullscreen mode) to Maemo and submit it to Ovi Store. Everything works except "end current task" not showing up.
jarmniku (or other folks), do you know how to solve the problem ?

I tried to send _NET_WM_PID but it does not work
----
// set _NET_WM_PID, should show "End this task" when pressing the power button on Maemo
// but does not work yet, we need to check why
long curr_pid = getpid();
XChangeProperty(
x_display, win,
XInternAtom ( x_display, "_NET_WM_PID", False ),
XA_CARDINAL, 32, PropModeReplace,
(unsigned char *) &curr_pid, 1);
----

Any hint ?

I've seen the Ovi QA requirements state that a send to dash board button must be provided too. (ie Angry Birds runs in fullscreen but provides that custom button which sends the app to the dashboard).
Any idea what functions I do need to call in order to implement it ?

thanks in advance for all your help,
Ben


Originally Posted by jarmniku View Post
I am developing a native X application that is thus not using GTK. As a result, it seems that system does not automatically provide "End current task" option at the power-switch menu, as it does for the GTK aplications.

Is there a way to get the "End current task" item into the power-switch menu by means of X API or something else (d-bus?) ? I would really apprepriate help because the problem is blocking us from releasing the application.
 

The Following User Says Thank You to benmaemo For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#6
No idea about the first problem.
As for the dashboard, it's just a dbus signal.
http://wiki.maemo.org/Phone_control#Show_dashboard
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:21.