![]() |
2011-06-24
, 06:03
|
Posts: 317 |
Thanked: 787 times |
Joined on Oct 2009
@ Krakow, Poland
|
#2
|
#include <dbus/dbus.h> void invokeTaskManager() { DBusConnection* bus = NULL; DBusMessage* msg = NULL; DBusError error; dbus_error_init(&error); bus = dbus_bus_get(DBUS_BUS_SESSION, &error); if (bus == NULL) { fprintf(stderr, "bus == NULL\n"); return; } // create a signal and check for errors msg = dbus_message_new_signal("/com/nokia/hildon_desktop", // path "com.nokia.hildon_desktop", // interface "exit_app_view"); // method str if (NULL == msg) { fprintf(stderr, "Message Null\n"); exit(1); } // send the message and flush the connection if (!dbus_connection_send(bus, msg, NULL)) { fprintf(stderr, "Out Of Memory!\n"); exit(1); } dbus_connection_flush(bus); dbus_message_unref(msg); }
The Following User Says Thank You to dwaradzyn For This Useful Post: | ||
![]() |
2011-06-24
, 06:29
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#3
|
![]() |
2011-06-24
, 06:58
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#4
|
system("dbus-send /com/nokia/hildon_desktop com.nokia.hildon_desktop.exit_app_view");
The Following User Says Thank You to Zas For This Useful Post: | ||
![]() |
2011-06-24
, 07:04
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#5
|
![]() |
2011-06-24
, 07:07
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#6
|
![]() |
2011-06-24
, 07:17
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#7
|
The Following User Says Thank You to Mentalist Traceur For This Useful Post: | ||
![]() |
2011-06-24
, 07:18
|
|
Posts: 196 |
Thanked: 113 times |
Joined on Jun 2010
@ Finland
|
#8
|
The Following User Says Thank You to Zas For This Useful Post: | ||
![]() |
2011-06-24
, 07:26
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#9
|
The Following User Says Thank You to droll For This Useful Post: | ||
![]() |
2011-06-24
, 08:54
|
|
Posts: 162 |
Thanked: 64 times |
Joined on Mar 2011
|
#10
|
i am currently picking up an app that someone wrote here but has since abandoned a long time ago. this app uses SDL.
the app is written in C to keep things simple. i call SDL_WM_ToggleFullScreen to get the app into full screen. everything works fine except - i can't use the CTRL-BACKSPACE key combo on the N900 to switch back out to the task viewer or desktop.
the only way i can get out is to hit the power button at the top which brings down a menu and if i wait a few seconds it then goes back out to the desktop. i can then swap to the task manager and see my app's window.
is there a way to pass the CTRL-BACKSPACE key combination back to the operating system instead of having it trapped by SDL? or is there another way to handle this?
my thoughts now are to have a key in my app that allows the user to toggle between full screen and windowed mode. but ideally i would like my app to run in full screen all the time but still give the flexibility to the user to task out and say respond to an incoming SMS.