~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/session.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-10-03 22:44:28 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051003224428-ft31gkmz12qpzohj
Tags: 1:2.12.1-0ubuntu1
* New upstream release:
  - Thanks to Ray Strode, Havoc Pennington, and Elijah Newren for
    improvements in this release.
  - Truncate ridiculously long titles to avoid crashing or letting the
    pager crash (Ray, Havoc, Elijah) [#315070] (Ubuntu: #15995)
  - Get the tabbing window outline to work with gtk+ 2.8.4 again
    (Elijah) [#317528] (Ubuntu: #16589)
  - Translations: Mahay Alam Khan (bn), Francisco Javier F. Serrador (es), 
    Ivar Smolin (et), I\uffffaki Larra\uffffaga Murgoitio (eu), Luca 
    Ferretti (it), Christian Rose (sv), Clytie Siddall (vi), Funda 
    Wang (zh_CN)
* debian/control.in:
  - Bumped Standards-Version.
* debian/patches/003_bordersdrawingfix.patch:
  - dropped, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Metacity Session Management */
 
2
 
 
3
/* 
 
4
 * Copyright (C) 2001 Havoc Pennington
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License as
 
8
 * published by the Free Software Foundation; either version 2 of the
 
9
 * License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * 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
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef META_SESSION_H
 
23
#define META_SESSION_H
 
24
 
 
25
#include "window.h"
 
26
 
 
27
typedef struct _MetaWindowSessionInfo MetaWindowSessionInfo;
 
28
 
 
29
struct _MetaWindowSessionInfo
 
30
{
 
31
  /* Fields we use to match against */
 
32
 
 
33
  char *id;
 
34
  char *res_class;
 
35
  char *res_name;
 
36
  char *title;
 
37
  char *role;
 
38
  MetaWindowType type;
 
39
 
 
40
  /* Information we restore */
 
41
  
 
42
  GSList *workspace_indices;  
 
43
 
 
44
  int stack_position;
 
45
  
 
46
  /* width/height should be multiplied by resize inc and
 
47
   * added to base size; position should be interpreted in
 
48
   * light of gravity. This preserves semantics of the
 
49
   * window size/pos, even if fonts/themes change, etc.
 
50
   */
 
51
  int gravity;
 
52
  MetaRectangle rect;
 
53
  MetaRectangle saved_rect;
 
54
  guint on_all_workspaces : 1;
 
55
  guint minimized : 1;
 
56
  guint maximized : 1;
 
57
 
 
58
  guint stack_position_set : 1;
 
59
  guint geometry_set : 1;
 
60
  guint on_all_workspaces_set : 1;
 
61
  guint minimized_set : 1;
 
62
  guint maximized_set : 1;
 
63
  guint saved_rect_set : 1;
 
64
};
 
65
 
 
66
/* If lookup_saved_state returns something, it should be used,
 
67
 * and then released when you're done with it.
 
68
 */
 
69
const MetaWindowSessionInfo* meta_window_lookup_saved_state  (MetaWindow                  *window);
 
70
void                         meta_window_release_saved_state (const MetaWindowSessionInfo *info);
 
71
 
 
72
void meta_session_init (const char *client_id,
 
73
                        const char *save_file);
 
74
 
 
75
 
 
76
void meta_session_shutdown (void);
 
77
 
 
78
#endif
 
79
 
 
80
 
 
81
 
 
82