Main Page | Directories | File List | File Members

hn-wm.h File Reference

#include <X11/Xlib.h>
#include <sys/time.h>
#include <gtk/gtk.h>
#include "hn-wm-types.h"

Go to the source code of this file.

Defines

#define HN_WANT_DEBUG   0
#define HN_DBG(x, a...)   do {} while (0)
#define HN_MARK()   HN_DBG("--mark--");
#define LOWMEM_PROC_ALLOWED   "/proc/sys/vm/lowmem_allowed_pages"
#define LOWMEM_PROC_USED   "/proc/sys/vm/lowmem_used_pages"
#define LOWMEM_LAUNCH_BANNER_TIMEOUT   0
#define LOWMEM_LAUNCH_BANNER_TIMEOUT_MAX   60000
#define LOWMEM_LAUNCH_BANNER_TIMEOUT_ENV   "NAVIGATOR_LOWMEM_LAUNCH_BANNER_TIMEOUT"
#define LOWMEM_TIMEOUT_MULTIPLIER_ENV   "NAVIGATOR_LOWMEM_TIMEOUT_MULTIPLIER"
#define LOWMEM_TIMEOUT_MULTIPLIER   2
#define LOWMEM_LAUNCH_THRESHOLD_DISTANCE   2500
#define LOWMEM_LAUNCH_THRESHOLD_DISTANCE_ENV   "NAVIGATOR_LOWMEM_LAUNCH_THRESHOLD_DISTANCE"
#define APP_LAUNCH_BANNER_METHOD_INTERFACE   "com.nokia.tasknav.app_launch_banner"
#define APP_LAUNCH_BANNER_METHOD_PATH   "/com/nokia/tasknav/app_launch_banner"
#define APP_LAUNCH_BANNER_METHOD   "app_launch_banner"
#define APP_LAUNCH_BANNER_MSG_LOADING   "ckct_ib_application_loading"
#define APP_LAUNCH_BANNER_MSG_RESUMING   "ckct_ib_application_resuming"
#define APP_LAUNCH_BANNER_MSG_LOADING_FAILED   "ckct_ib_application_loading_failed"
#define APP_LAUNCH_BANNER_TIMEOUT   20
#define APP_LAUNCH_BANNER_TIMEOUT_LOWMEM   40
#define APP_LAUNCH_BANNER_CHECK_INTERVAL   0.5
#define DESKTOP_VISIBLE_FIELD   "Name"
#define DESKTOP_LAUNCH_FIELD   "X-Osso-Service"
#define DESKTOP_EXEC_FIELD   "Exec"
#define DESKTOP_ICON_FIELD   "Icon"
#define DESKTOP_ICON_PATH_FIELD   "X-Icon-path"
#define DESKTOP_SUP_WMCLASS   "StartupWMClass"
#define DESKTOP_STARTUPNOTIFY   "StartupNotify"
#define DESKTOP_TEXT_DOMAIN_FIELD   "X-Text-Domain"
#define DESKTOP_SUFFIX   ".desktop"
#define MAEMO_LAUNCHER_SIGNAL_IFACE   "org.maemo.launcher"
#define MAEMO_LAUNCHER_SIGNAL_PATH   "/org/maemo/launcher"
#define APP_DIED_SIGNAL_NAME   "ApplicationDied"
#define APPKILLER_SIGNAL_INTERFACE   "com.nokia.osso_app_killer"
#define APPKILLER_SIGNAL_PATH   "/com/nokia/osso_app_killer"
#define APPKILLER_SIGNAL_NAME   "exit"
#define SAVE_METHOD   "save"
#define KILL_APPS_METHOD   "kill_app"
#define UNKNOWN_TITLE   "Unknown"
#define TN_DEFAULT_FOCUS   FALSE

Functions

void hn_wm_top_item (HNEntryInfo *info)
gboolean hn_wm_top_service (const gchar *service_name)
void hn_wm_top_desktop (void)
void hn_wm_toggle_desktop (void)
HNWMWatchedWindow * hn_wm_lookup_watched_window_via_service (const gchar *service_name)
HNWMWatchedWindow * hn_wm_lookup_watched_window_via_menu_widget (GtkWidget *menu_widget)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_service (const gchar *service_name)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_exec (const gchar *exec_name)
HNWMWatchableApp * hn_wm_lookup_watchable_app_via_menu (GtkWidget *menu)
HNWMWatchedWindow * hn_wm_lookup_watched_window_view (GtkWidget *menu_widget)
gchar * hn_wm_compute_watched_window_hibernation_key (Window xwin, HNWMWatchableApp *app)
gboolean hn_wm_init (HNAppSwitcher *as)
void hn_wm_dnotify_register (void)
void hn_wm_activate (guint32 what)
void hn_wm_focus_active_window (void)
gboolean hn_wm_fullscreen_mode (void)
Atom hn_wm_get_atom (gint indx)
GHashTable * hn_wm_get_watched_windows (void)
GHashTable * hn_wm_get_hibernating_windows (void)
gboolean hn_wm_is_lowmem_situation (void)
void hn_wm_set_lowmem_situation (gboolean b)
gboolean hn_wm_is_bg_kill_situation (void)
void hn_wm_set_bg_kill_situation (gboolean b)
HNAppSwitcher * hn_wm_get_app_switcher (void)
gint hn_wm_get_timer_id (void)
void hn_wm_set_timer_id (gint id)
void hn_wm_set_about_to_shutdown (gboolean b)
gboolean hn_wm_get_about_to_shutdown (void)
GList * hn_wm_get_banner_stack (void)
void hn_wm_set_banner_stack (GList *l)
gulong hn_wm_get_lowmem_banner_timeout (void)
gulong hn_wm_get_lowmem_timeout_multiplier (void)
HNWMWatchedWindow * hn_wm_get_active_window (void)
HNWMWatchedWindow * hn_wm_get_last_active_window (void)
gboolean hn_wm_modal_windows_present (void)
void hn_wm_reset_active_window (void)
void hn_wm_reset_last_active_window (void)
void hn_wm_others_open (void)


Detailed Description


Function Documentation

void hn_wm_toggle_desktop void   ) 
 

Toggle between desktop and the last active application

void hn_wm_top_desktop void   ) 
 

Requests the real window manager to top the desktop

void hn_wm_top_item HNEntryInfo *  info  ) 
 

Send 'top' request for a certain existing window/view

Parameters:
info the window/view to be topped

gboolean hn_wm_top_service const gchar *  service_name  ) 
 

Send 'top' request for a certain service

Parameters:
service_name The name of the service that is to be topped


Generated on Thu Dec 21 11:26:53 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2