X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdock.h;h=99cc01f3a962dd7e8d7549fd0bbeb11cc0780ce5;hb=960a7f0184a84f99545fa2d3dd22cefc77f2cbc6;hp=2b6dc4d2fdf28202ba2241aedfff7b98145acb76;hpb=f17b225daadb483b8736dc0e57a9def68e770ae9;p=chaz%2Fopenbox diff --git a/openbox/dock.h b/openbox/dock.h index 2b6dc4d2..99cc01f3 100644 --- a/openbox/dock.h +++ b/openbox/dock.h @@ -11,50 +11,44 @@ #include #include -typedef enum { - DockPos_Floating, - DockPos_TopLeft, - DockPos_Top, - DockPos_TopRight, - DockPos_Right, - DockPos_BottomRight, - DockPos_Bottom, - DockPos_BottomLeft, - DockPos_Left -} DockPosition; - -typedef struct Dock { +typedef struct _ObDock ObDock; +typedef struct _ObDockApp ObDockApp; + +struct _ObDock +{ ObWindow obwin; Window frame; - Appearance *a_frame; + RrAppearance *a_frame; /* actual position (when not auto-hidden) */ - int x, y; - int w, h; + gint x; + gint y; + gint w; + gint h; gboolean hidden; - Timer *hide_timer; + ObTimer *hide_timer; GList *dock_apps; -} Dock; +}; -typedef struct DockApp { +struct _ObDockApp { ObWindow obwin; - int ignore_unmaps; + gint ignore_unmaps; Window icon_win; Window win; - char *name; - char *class; + gchar *name; + gchar *class; - int x; - int y; - int w; - int h; -} DockApp; + gint x; + gint y; + gint w; + gint h; +}; extern Strut dock_strut; @@ -67,9 +61,9 @@ void dock_hide(gboolean hide); void dock_add(Window win, XWMHints *wmhints); void dock_remove_all(); -void dock_remove(DockApp *app, gboolean reparent); +void dock_remove(ObDockApp *app, gboolean reparent); -void dock_app_drag(DockApp *app, XMotionEvent *e); -void dock_app_configure(DockApp *app, int w, int h); +void dock_app_drag(ObDockApp *app, XMotionEvent *e); +void dock_app_configure(ObDockApp *app, gint w, gint h); #endif