openbox/config.h \
openbox/debug.c \
openbox/debug.h \
- openbox/dock.c \
- openbox/dock.h \
openbox/event.c \
openbox/event.h \
openbox/extensions.c \
#include "grab.h"
#include "keyboard.h"
#include "event.h"
-#include "dock.h"
+//#include "dock.h"
#include "config.h"
#include "mainloop.h"
#include "startupnotify.h"
action_moveresize,
setup_action_resize
},
- {
+/* {
"toggledockautohide",
action_toggle_dockautohide,
NULL
- },
+ },*/
{
"toggleshowdesktop",
action_toggle_show_desktop,
client_action_end(data);
}
-void action_toggle_dockautohide(union ActionData *data)
+/*void action_toggle_dockautohide(union ActionData *data)
{
config_dock_hide = !config_dock_hide;
dock_configure();
-}
+}*/
void action_toggle_show_desktop(union ActionData *data)
{
/* Layer */
void action_toggle_layer(union ActionData *data);
/* Any */
-void action_toggle_dockautohide(union ActionData *data);
+//void action_toggle_dockautohide(union ActionData *data);
/* Any */
void action_toggle_show_desktop(union ActionData *data);
/* Any */
#include "client.h"
#include "debug.h"
#include "startupnotify.h"
-#include "dock.h"
+//#include "dock.h"
#include "xerror.h"
#include "screen.h"
#include "moveresize.h"
if ((wmhint->flags & StateHint) &&
wmhint->initial_state == WithdrawnState)
{
- dock_add(window, wmhint);
+ //dock_add(window, wmhint);
grab_server(FALSE);
XFree(wmhint);
return;
gint config_resize_popup_show;
gint config_resize_popup_pos;
-ObStackingLayer config_dock_layer;
+/*ObStackingLayer config_dock_layer;
gboolean config_dock_floating;
gboolean config_dock_nostrut;
ObDirection config_dock_pos;
guint config_dock_show_delay;
guint config_dock_app_move_button;
guint config_dock_app_move_modifiers;
-
+*/
guint config_keyboard_reset_keycode;
guint config_keyboard_reset_state;
}
}
-static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
+/*static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
gpointer d)
{
xmlNodePtr n;
}
g_free(str);
}
-}
+}*/
static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
gpointer d)
parse_register(i, "resize", parse_resize, NULL);
+ /*
config_dock_layer = OB_STACKING_LAYER_ABOVE;
config_dock_pos = OB_DIRECTION_NORTHEAST;
config_dock_floating = FALSE;
config_dock_hide = FALSE;
config_dock_hide_delay = 300;
config_dock_show_delay = 300;
- config_dock_app_move_button = 2; /* middle */
+ config_dock_app_move_button = 2; // middle
config_dock_app_move_modifiers = 0;
-
parse_register(i, "dock", parse_dock, NULL);
+*/
translate_key("C-g", &config_keyboard_reset_state,
&config_keyboard_reset_keycode);
extern gint config_resize_popup_pos;
/*! The stacking layer the dock will reside in */
-extern ObStackingLayer config_dock_layer;
+//extern ObStackingLayer config_dock_layer;
/*! Is the dock floating */
-extern gboolean config_dock_floating;
+//extern gboolean config_dock_floating;
/*! Don't use a strut for the dock */
-extern gboolean config_dock_nostrut;
+//extern gboolean config_dock_nostrut;
/*! Where to place the dock if not floating */
-extern ObDirection config_dock_pos;
+//extern ObDirection config_dock_pos;
/*! If config_dock_floating, this is the top-left corner's
position */
-extern gint config_dock_x;
+//extern gint config_dock_x;
/*! If config_dock_floating, this is the top-left corner's
position */
-extern gint config_dock_y;
+//extern gint config_dock_y;
/*! Whether the dock places the dockapps in it horizontally or vertically */
-extern ObOrientation config_dock_orient;
+//extern ObOrientation config_dock_orient;
/*! Whether to auto-hide the dock when the pointer is not over it */
-extern gboolean config_dock_hide;
+//extern gboolean config_dock_hide;
/*! The number of microseconds to wait before hiding the dock */
-extern guint config_dock_hide_delay;
+//extern guint config_dock_hide_delay;
/*! The number of microseconds to wait before showing the dock */
-extern guint config_dock_show_delay;
+//extern guint config_dock_show_delay;
/*! The mouse button to be used to move dock apps */
-extern guint config_dock_app_move_button;
+//extern guint config_dock_app_move_button;
/*! The modifiers to be used with the button to move dock apps */
-extern guint config_dock_app_move_modifiers;
+//extern guint config_dock_app_move_modifiers;
/*! The name of the theme */
extern gchar *config_theme;
#include "debug.h"
#include "window.h"
#include "openbox.h"
-#include "dock.h"
+//#include "dock.h"
#include "client.h"
#include "xerror.h"
#include "prop.h"
static void event_client_dest(ObClient *client, gpointer data);
static void event_handle_root(XEvent *e);
static void event_handle_menu(XEvent *e);
-static void event_handle_dock(ObDock *s, XEvent *e);
-static void event_handle_dockapp(ObDockApp *app, XEvent *e);
+//static void event_handle_dock(ObDock *s, XEvent *e);
+//static void event_handle_dockapp(ObDockApp *app, XEvent *e);
static void event_handle_client(ObClient *c, XEvent *e);
static void event_handle_group(ObGroup *g, XEvent *e);
Window window;
ObGroup *group = NULL;
ObClient *client = NULL;
- ObDock *dock = NULL;
- ObDockApp *dockapp = NULL;
+// ObDock *dock = NULL;
+ // ObDockApp *dockapp = NULL;
ObWindow *obwin = NULL;
XEvent ee, *e;
ObEventData *ed = data;
(group = g_hash_table_lookup(group_map, &window))))
if ((obwin = g_hash_table_lookup(window_map, &window))) {
switch (obwin->type) {
- case Window_Dock:
+/* case Window_Dock:
dock = WINDOW_AS_DOCK(obwin);
break;
case Window_DockApp:
dockapp = WINDOW_AS_DOCKAPP(obwin);
- break;
+ break;*/
case Window_Client:
client = WINDOW_AS_CLIENT(obwin);
break;
event_handle_group(group, e);
else if (client)
event_handle_client(client, e);
- else if (dockapp)
+/* else if (dockapp)
event_handle_dockapp(dockapp, e);
else if (dock)
- event_handle_dock(dock, e);
+ event_handle_dock(dock, e);*/
else if (window == RootWindow(ob_display, ob_screen))
event_handle_root(e);
else if (e->type == MapRequest)
}
}
-static void event_handle_dock(ObDock *s, XEvent *e)
+/*static void event_handle_dock(ObDock *s, XEvent *e)
{
switch (e->type) {
case ButtonPress:
dock_app_configure(app, e->xconfigure.width, e->xconfigure.height);
break;
}
-}
+}*/
ObMenuFrame* find_active_menu()
{
#include "debug.h"
#include "openbox.h"
#include "session.h"
-#include "dock.h"
+//#include "dock.h"
#include "event.h"
#include "menu.h"
#include "client.h"
grab_startup(reconfigure);
group_startup(reconfigure);
client_startup(reconfigure);
- dock_startup(reconfigure);
+ //dock_startup(reconfigure);
moveresize_startup(reconfigure);
keyboard_startup(reconfigure);
mouse_startup(reconfigure);
state = OB_STATE_EXITING;
if (!reconfigure) {
- dock_remove_all();
+ //dock_remove_all();
client_unmanage_all();
}
mouse_shutdown(reconfigure);
keyboard_shutdown(reconfigure);
moveresize_shutdown(reconfigure);
- dock_shutdown(reconfigure);
+ //dock_shutdown(reconfigure);
client_shutdown(reconfigure);
group_shutdown(reconfigure);
grab_shutdown(reconfigure);
#include "debug.h"
#include "openbox.h"
-#include "dock.h"
+//#include "dock.h"
#include "xerror.h"
#include "prop.h"
#include "grab.h"
return;
screen_update_areas();
- dock_configure();
+// dock_configure();
for (it = client_list; it; it = g_list_next(it))
client_move_onscreen(it->data, FALSE);
o + c->strut.left - area[i][x].x,
&struts[x]);
}
- screen_area_add_strut_left(&dock_strut,
+/* screen_area_add_strut_left(&dock_strut,
&monitor_area[x],
o + dock_strut.left - area[i][x].x,
&struts[x]);
-
+*/
area[i][x].x += struts[x].left;
area[i][x].width -= struts[x].left;
}
o + c->strut.top - area[i][x].y,
&struts[x]);
}
- screen_area_add_strut_top(&dock_strut,
+/* screen_area_add_strut_top(&dock_strut,
&monitor_area[x],
o + dock_strut.top - area[i][x].y,
&struts[x]);
-
+*/
area[i][x].y += struts[x].top;
area[i][x].height -= struts[x].top;
}
(o - c->strut.right),
&struts[x]);
}
- screen_area_add_strut_right(&dock_strut,
+/* screen_area_add_strut_right(&dock_strut,
&monitor_area[x],
(area[i][x].x +
area[i][x].width - 1) -
(o - dock_strut.right),
&struts[x]);
-
+*/
area[i][x].width -= struts[x].right;
}
(o - c->strut.bottom),
&struts[x]);
}
- screen_area_add_strut_bottom(&dock_strut,
+/* screen_area_add_strut_bottom(&dock_strut,
&monitor_area[x],
(area[i][x].y +
area[i][x].height - 1) - \
(o - dock_strut.bottom),
&struts[x]);
-
+*/
area[i][x].height -= struts[x].bottom;
}
#include "window.h"
#include "menuframe.h"
#include "config.h"
-#include "dock.h"
+//#include "dock.h"
#include "client.h"
#include "frame.h"
switch (self->type) {
case Window_Menu:
return ((ObMenuFrame*)self)->window;
- case Window_Dock:
- return ((ObDock*)self)->frame;
- case Window_DockApp:
+// case Window_Dock:
+// return ((ObDock*)self)->frame;
+// case Window_DockApp:
/* not to be used for stacking */
- g_assert_not_reached();
- break;
+// g_assert_not_reached();
+// break;
case Window_Client:
return ((ObClient*)self)->frame->window;
case Window_Internal:
switch (self->type) {
case Window_Menu:
return OB_STACKING_LAYER_INTERNAL;
- case Window_Dock:
- return config_dock_layer;
- case Window_DockApp:
+// case Window_Dock:
+// return config_dock_layer;
+// case Window_DockApp:
/* not to be used for stacking */
- g_assert_not_reached();
- break;
+// g_assert_not_reached();
+// break;
case Window_Client:
return ((ObClient*)self)->layer;
case Window_Internal:
#define WINDOW_AS_INTERNAL(win) ((struct InternalWindow*)win)
#define MENU_AS_WINDOW(menu) ((ObWindow*)menu)
-#define DOCK_AS_WINDOW(dock) ((ObWindow*)dock)
-#define DOCKAPP_AS_WINDOW(dockapp) ((ObWindow*)dockapp)
+//#define DOCK_AS_WINDOW(dock) ((ObWindow*)dock)
+//#define DOCKAPP_AS_WINDOW(dockapp) ((ObWindow*)dockapp)
#define CLIENT_AS_WINDOW(client) ((ObWindow*)client)
#define INTERNAL_AS_WINDOW(intern) ((ObWindow*)intern)