Added option to 'configure' to control debug information for compilation
[wmaker-crm.git] / src / application.h
blob1a959993e745c2a56996734e21f4c0654081b35d
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef WMAPPLICATION_H_
23 #define WMAPPLICATION_H_
25 /* for tracking single application instances */
26 typedef struct WApplication {
27 struct WApplication *next;
28 struct WApplication *prev;
30 Window main_window; /* ID of the group leader */
31 struct WWindow *main_window_desc; /* main (leader) window descriptor */
32 WMenu *menu; /* application menu */
33 struct WAppIcon *app_icon;
34 int refcount;
35 struct WWindow *last_focused; /* focused window before hide */
36 int last_workspace; /* last workspace used to work on the
37 * app */
38 WMHandlerID *urgent_bounce_timer;
39 struct {
40 unsigned int skip_next_animation:1;
41 unsigned int hidden:1;
42 unsigned int emulated:1;
43 unsigned int bouncing:1;
44 } flags;
45 } WApplication;
48 WApplication *wApplicationCreate(struct WWindow *wwin);
49 WApplication *wApplicationOf(Window window);
50 void wApplicationDestroy(WApplication *wapp);
52 void wAppBounce(WApplication *);
53 void wAppBounceWhileUrgent(WApplication *);
54 void wApplicationActivate(WApplication *);
55 void wApplicationDeactivate(WApplication *);
56 #endif