blob: b2ded2d2191c2dff78b5f50efb7e91e4d32e7cf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
dock.h for the Openbox window manager
Copyright (c) 2003 Ben Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
See the COPYING file for a copy of the GNU General Public License.
*/
#ifndef __dock_h
#define __dock_h
#include "window.h"
#include "stacking.h"
#include "geom.h"
#include "render/render.h"
#include <glib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
typedef struct _ObDock ObDock;
typedef struct _ObDockApp ObDockApp;
struct _ObDock
{
ObWindow obwin;
Window frame;
RrAppearance *a_frame;
/* actual position (when not auto-hidden) */
gint x;
gint y;
gint w;
gint h;
gboolean hidden;
GList *dock_apps;
};
struct _ObDockApp {
ObWindow obwin;
gint ignore_unmaps;
Window icon_win;
Window win;
gchar *name;
gchar *class;
gint x;
gint y;
gint w;
gint h;
};
extern StrutPartial dock_strut;
void dock_startup(gboolean reconfig);
void dock_shutdown(gboolean reconfig);
void dock_configure();
void dock_hide(gboolean hide);
void dock_add(Window win, XWMHints *wmhints);
void dock_remove_all();
void dock_remove(ObDockApp *app, gboolean reparent);
void dock_app_drag(ObDockApp *app, XMotionEvent *e);
void dock_app_configure(ObDockApp *app, gint w, gint h);
#endif
|