]> icculus.org git repositories - dana/openbox.git/blob - openbox/place.h
Add matching which monitor the client is on in the If action (Bug 5426)
[dana/openbox.git] / openbox / place.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    place.h for the Openbox window manager
4    Copyright (c) 2006        Mikael Magnusson
5    Copyright (c) 2003-2007   Dana Jansens
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    See the COPYING file for a copy of the GNU General Public License.
18 */
19
20 #ifndef ob__place_h
21 #define ob__place_h
22
23 #include "geom.h"
24
25 #include <glib.h>
26
27 struct _ObClient;
28 struct _ObAppSettings;
29
30 typedef enum
31 {
32     OB_PLACE_POLICY_SMART,
33     OB_PLACE_POLICY_MOUSE
34 } ObPlacePolicy;
35
36 typedef enum
37 {
38     OB_PLACE_MONITOR_ANY,
39     OB_PLACE_MONITOR_ACTIVE,
40     OB_PLACE_MONITOR_MOUSE,
41     OB_PLACE_MONITOR_PRIMARY
42 } ObPlaceMonitor;
43
44 /*! Return TRUE if openbox chose the position for the window, and FALSE if
45   the application chose it */
46 gboolean place_client(struct _ObClient *client,
47                       gboolean client_to_be_foregrounded,
48                       Rect* client_area, struct _ObAppSettings *settings);
49
50 #endif