X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdock.h;h=57c1f393170e4aa8568166f0ac2a0928b30109c9;hb=3234a7508326f0fd7b54b7cfe0bd443f8ba35260;hp=99cc01f3a962dd7e8d7549fd0bbeb11cc0780ce5;hpb=85112c4d0831067251de1295fbb6974db94af2ba;p=chaz%2Fopenbox diff --git a/openbox/dock.h b/openbox/dock.h index 99cc01f3..57c1f393 100644 --- a/openbox/dock.h +++ b/openbox/dock.h @@ -1,7 +1,24 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + dock.h for the Openbox window manager + Copyright (c) 2003-2007 Dana 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 "timer.h" #include "window.h" #include "stacking.h" #include "geom.h" @@ -22,13 +39,9 @@ struct _ObDock RrAppearance *a_frame; /* actual position (when not auto-hidden) */ - gint x; - gint y; - gint w; - gint h; + Rect area; gboolean hidden; - ObTimer *hide_timer; GList *dock_apps; }; @@ -50,10 +63,10 @@ struct _ObDockApp { gint h; }; -extern Strut dock_strut; +extern StrutPartial dock_strut; -void dock_startup(); -void dock_shutdown(); +void dock_startup(gboolean reconfig); +void dock_shutdown(gboolean reconfig); void dock_configure(); void dock_hide(gboolean hide); @@ -66,4 +79,6 @@ 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); +void dock_get_area(Rect *a); + #endif