Bouncing appicon effect
[wmaker-crm.git] / src / application.h
Commit [+]AuthorDateLineData
9d2e6ef9 scottc1998-09-29 22:36:29 +00001/*
9af1c6c4 dan1998-10-21 14:43:47 +00002 * Window Maker window manager
6830b057 dan2004-10-12 21:28:27 +00003 *
4153e2fd dan2003-01-16 23:30:45 +00004 * Copyright (c) 1997-2003 Alfredo K. Kojima
6830b057 dan2004-10-12 21:28:27 +00005 *
9d2e6ef9 scottc1998-09-29 22:36:29 +00006 * 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.
10 *
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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
6830b057 dan2004-10-12 21:28:27 +000018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
9d2e6ef9 scottc1998-09-29 22:36:29 +000019 * USA.
20 */
21
22
23#ifndef WMAPPLICATION_H_
24#define WMAPPLICATION_H_
25
26/* for tracking single application instances */
27typedef struct WApplication {
28 struct WApplication *next;
29 struct WApplication *prev;
6830b057 dan2004-10-12 21:28:27 +000030
9d2e6ef9 scottc1998-09-29 22:36:29 +000031 Window main_window; /* ID of the group leader */
32
33 struct WWindow *main_window_desc; /* main (leader) window descriptor */
34
35 WMenu *menu; /* application menu */
36
37 struct WAppIcon *app_icon;
38
39 int refcount;
40
41 struct WWindow *last_focused; /* focused window before hide */
672c42cc dan2001-12-17 04:02:33 +000042
6830b057 dan2004-10-12 21:28:27 +000043 int last_workspace; /* last workspace used to work on the
44 * app */
9d2e6ef9 scottc1998-09-29 22:36:29 +000045 struct {
6830b057 dan2004-10-12 21:28:27 +000046 unsigned int skip_next_animation:1;
47 unsigned int hidden:1;
48 unsigned int emulated:1;
a257e165
AF
Alexey I. Froloff2010-09-10 20:51:03 +040049#ifdef BOUNCE_APP
50 unsigned int bouncing:1;
51#endif
9d2e6ef9 scottc1998-09-29 22:36:29 +000052 } flags;
53} WApplication;
54
55
9aca0d5f dan2004-10-12 01:34:32 +000056WApplication *wApplicationCreate(struct WWindow *wwin);
9d2e6ef9 scottc1998-09-29 22:36:29 +000057void wApplicationDestroy(WApplication *wapp);
58
59WApplication *wApplicationOf(Window window);
60
6830b057 dan2004-10-12 21:28:27 +000061void wApplicationExtractDirPackIcon(WScreen *scr,char *path, char *wm_instance,
62 char *wm_class);
a257e165
AF
Alexey I. Froloff2010-09-10 20:51:03 +040063
64void wAppBounce(WApplication *);
9d2e6ef9 scottc1998-09-29 22:36:29 +000065#endif
6830b057 dan2004-10-12 21:28:27 +000066