Re: Programmatically showing the desktop in Fremantle

2010-01-19 Thread obb770
2010/1/18 Kimmo Hämäläinen kimmo.hamalai...@nokia.com:
 On Mon, 2010-01-18 at 12:10 +0100, Hamalainen Kimmo (Nokia-D/Helsinki)
 wrote:
 If you want the switcher to ignore your application, please try using
 _NET_WM_STATE_SKIP_PAGER. See

 Sorry, I meant _NET_WM_STATE_SKIP_TASKBAR...


If I understand correctly (couldn't get it to work), the effect will
be that the application will just not be in the task navigator view,
but pressing the task switcher icon (or sending exit_app_view) or
closing the application will still lead to the task navigator view and
not to the home view.

Yet, I found that the code suggested in [1] does what I wanted in
Fremantle. That is, sending _NET_SHOWING_DESKTOP with data 1 to the
root window from the application, causes the desktop home view to show
(at least in scratchbox - didn't try on a device), without showing the
task navigator view (even if other applications are running).

The problem is that if the status menu item that launched the
application was used from the status bar on top of another application
window (and not from the home view) the XEvent will still get to the
home desktop view rather than back to the other (original)
application view.

Given that the user still might not get back to where they came from,
and the recommendation against messing with the desktop state. I might
just keep using exit_app_view (from where the user is one click away
from the home view or another application view).

Thanks,

-obb

[1] - 
http://www.linuxquestions.org/questions/linux-software-2/how-to-show-desktop-in-xfce4-601161/#post2967109
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Programmatically showing the desktop in Fremantle

2010-01-14 Thread obb770
Is there a way in Fremantle to programmatically change the view from
application view directly to the desktop home view (perhaps similar to
the com.nokia.hildon_desktop.exit_app_view dbus signal)?

The specific use is for a standalone application that is launched (or
brought to the foreground if it is already running) by a
hildon-status-menu plugin. When the application is done with user
interaction, it should continue running but minimize itself so that
the desktop will be shown (as it was before the application was
activated). Using the exit_app_view signal causes the task navigator
view to show where the initial desktop view is still one click away on
the blurred area.

Of course it would be possible to have the application windows be part
of and shown by the plugin itself. But it seems cleaner to have
application logic in a separate process and keep the status plugin
just doing status icon indication and providing a launch button.

Given that if there isn't a good way to do this, then it might not
be fixed in the Fremantle lifetime - is there an ugly way to show the
desktop? like simulating pressing the right place on the screen,
somehow getting into non-public API of hildon-desktop, or something
else?

Thanks,

-obb
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Programmatically showing the desktop in Fremantle

2010-01-14 Thread obb770
On Thu, Jan 14, 2010 at 11:47 PM, Simon Budig si...@budig.de wrote:
 obb770 (obb...@gmail.com) wrote:
 Given that if there isn't a good way to do this, then it might not
 be fixed in the Fremantle lifetime - is there an ugly way to show the
 desktop? like simulating pressing the right place on the screen,
 somehow getting into non-public API of hildon-desktop, or something
 else?

 Can't you just gtk_window_hide() the application window?

It seems to still show the task navigator view with other minimized
applications (if other applications happened to be already running).

Thanks,

-obb
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers