}
}
-gboolean actions_interactive_act_running()
+gboolean actions_interactive_act_running(void)
{
return interactive_act != NULL;
}
-void actions_interactive_cancel_act()
+void actions_interactive_cancel_act(void)
{
if (interactive_act) {
interactive_act->def->i_cancel(interactive_act->options);
return FALSE;
}
-static void actions_interactive_end_act()
+static void actions_interactive_end_act(void)
{
if (interactive_act) {
ungrab_keyboard();
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_addremovedesktop_startup()
+void action_addremovedesktop_startup(void)
{
actions_register("AddDesktop",
setup_add_func,
#include "all.h"
-void action_all_startup()
+void action_all_startup(void)
{
action_execute_startup();
action_debug_startup();
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_breakchroot_startup()
+void action_breakchroot_startup(void)
{
actions_register("BreakChroot",
NULL, NULL,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_close_startup()
+void action_close_startup(void)
{
actions_register("Close",
NULL, NULL,
static void end_cycle(gboolean cancel, guint state, Options *o);
-void action_cyclewindows_startup()
+void action_cyclewindows_startup(void)
{
actions_register("NextWindow", setup_forward_func, free_func,
run_func, i_input_func, i_cancel_func);
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_debug_startup()
+void action_debug_startup(void)
{
actions_register("Debug",
setup_func,
static gboolean run_func_off(ObActionsData *data, gpointer options);
static gboolean run_func_toggle(ObActionsData *data, gpointer options);
-void action_decorations_startup()
+void action_decorations_startup(void)
{
actions_register("Decorate", NULL, NULL, run_func_on, NULL, NULL);
actions_register("Undecorate", NULL, NULL, run_func_off, NULL, NULL);
xmlNodePtr node);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_desktop_startup()
+void action_desktop_startup(void)
{
actions_register("GoToDesktop", setup_go_func, g_free, run_func,
NULL, NULL);
static void end_cycle(gboolean cancel, guint state, Options *o);
-void action_directionalwindows_startup()
+void action_directionalwindows_startup(void)
{
actions_register("DirectionalCycleWindows", setup_cycle_func, free_func,
run_func, i_input_func, i_cancel_func);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_dockautohide_startup()
+void action_dockautohide_startup(void)
{
actions_register("ToggleDockAutoHide",
NULL, NULL,
static void i_cancel_func(gpointer options);
*/
-void action_execute_startup()
+void action_execute_startup(void)
{
actions_register("Execute",
setup_func,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_exit_startup()
+void action_exit_startup(void)
{
actions_register("Exit",
NULL, NULL,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_focus_startup()
+void action_focus_startup(void)
{
actions_register("Focus",
setup_func,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_focustobottom_startup()
+void action_focustobottom_startup(void)
{
actions_register("FocusToBottom", NULL, NULL, run_func, NULL, NULL);
}
static gboolean run_func_toggle(ObActionsData *data, gpointer options);
-void action_fullscreen_startup()
+void action_fullscreen_startup(void)
{
actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle,
NULL, NULL);
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_growtoedge_startup()
+void action_growtoedge_startup(void)
{
actions_register("GrowToEdge",
setup_func,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_iconify_startup()
+void action_iconify_startup(void)
{
actions_register("Iconify",
NULL, NULL,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_if_startup()
+void action_if_startup(void)
{
actions_register("If",
setup_func,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_kill_startup()
+void action_kill_startup(void)
{
actions_register("Kill",
NULL, NULL,
xmlNodePtr node);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_layer_startup()
+void action_layer_startup(void)
{
actions_register("ToggleAlwaysOnTop", setup_func_top, g_free,
run_func, NULL, NULL);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_lower_startup()
+void action_lower_startup(void)
{
actions_register("Lower",
NULL, NULL,
static gboolean run_func_off(ObActionsData *data, gpointer options);
static gboolean run_func_toggle(ObActionsData *data, gpointer options);
-void action_maximize_startup()
+void action_maximize_startup(void)
{
actions_register("Maximize", setup_func, g_free, run_func_on,
NULL, NULL);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_move_startup()
+void action_move_startup(void)
{
actions_register("Move",
NULL, NULL,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_moverelative_startup()
+void action_moverelative_startup(void)
{
actions_register("MoveRelative",
setup_func,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_moveresizeto_startup()
+void action_moveresizeto_startup(void)
{
actions_register("MoveResizeTo",
setup_func,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_movetoedge_startup()
+void action_movetoedge_startup(void)
{
actions_register("MoveToEdge",
setup_func,
static gboolean run_func_toggle(ObActionsData *data, gpointer options);
-void action_omnipresent_startup()
+void action_omnipresent_startup(void)
{
actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle,
NULL, NULL);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_raise_startup()
+void action_raise_startup(void)
{
actions_register("Raise",
NULL, NULL,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_raiselower_startup()
+void action_raiselower_startup(void)
{
actions_register("RaiseLower",
NULL, NULL,
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_reconfigure_startup()
+void action_reconfigure_startup(void)
{
actions_register("Reconfigure",
NULL, NULL,
static guint32 pick_corner(gint x, gint y, gint cx, gint cy, gint cw, gint ch,
gboolean shaded);
-void action_resize_startup()
+void action_resize_startup(void)
{
actions_register("Resize",
setup_func,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_resizerelative_startup()
+void action_resizerelative_startup(void)
{
actions_register("ResizeRelative",
setup_func,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_restart_startup()
+void action_restart_startup(void)
{
actions_register("Restart",
setup_func,
static gboolean run_func_off(ObActionsData *data, gpointer options);
static gboolean run_func_toggle(ObActionsData *data, gpointer options);
-void action_shade_startup()
+void action_shade_startup(void)
{
actions_register("Shade", NULL, NULL, run_func_on, NULL, NULL);
actions_register("Unshade", NULL, NULL, run_func_off, NULL, NULL);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_showdesktop_startup()
+void action_showdesktop_startup(void)
{
actions_register("ToggleShowDesktop",
NULL, NULL,
static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_showmenu_startup()
+void action_showmenu_startup(void)
{
actions_register("ShowMenu", setup_func, free_func, run_func,
NULL, NULL);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_unfocus_startup()
+void action_unfocus_startup(void)
{
actions_register("Unfocus", NULL, NULL, run_func, NULL, NULL);
}
}
}
-void client_set_list()
+void client_set_list(void)
{
Window *windows, *win_it;
GList *it;
stacking_set_list();
}
-void client_manage_all()
+void client_manage_all(void)
{
guint i, j, nchild;
Window w, *children;
return self;
}
-void client_unmanage_all()
+void client_unmanage_all(void)
{
while (client_list != NULL)
client_unmanage(client_list->data);
*h -= self->frame->size.top + self->frame->size.bottom;
}
-ObClient* client_under_pointer()
+ObClient* client_under_pointer(void)
{
gint x, y;
GList *it;
}
}
-void client_menu_startup()
+void client_menu_startup(void)
{
ObMenu *menu;
ObMenuEntry *e;
GSList *config_per_app_settings;
-ObAppSettings* config_create_app_settings()
+ObAppSettings* config_create_app_settings(void)
{
ObAppSettings *settings = g_new0(ObAppSettings, 1);
settings->decor = -1;
const gchar *actname;
} ObDefKeyBind;
-static void bind_default_keyboard()
+static void bind_default_keyboard(void)
{
ObDefKeyBind *it;
ObDefKeyBind binds[] = {
const gchar *actname;
} ObDefMouseBind;
-static void bind_default_mouse()
+static void bind_default_mouse(void)
{
ObDefMouseBind *it;
ObDefMouseBind binds[] = {
parse_register(i, "applications", parse_per_app_settings, NULL);
}
-void config_shutdown()
+void config_shutdown(void)
{
GSList *it;
ob_debug("Managed Dock App: 0x%lx (%s)\n", app->icon_win, app->class);
}
-void dock_remove_all()
+void dock_remove_all(void)
{
while (dock->dock_apps)
dock_remove(dock->dock_apps->data, TRUE);
g_free(app);
}
-void dock_configure()
+void dock_configure(void)
{
GList *it;
gint hspot, vspot;
}
}
-static ObMenuFrame* find_active_menu()
+static ObMenuFrame* find_active_menu(void)
{
GList *it;
ObMenuFrame *ret = NULL;
return ret;
}
-static ObMenuFrame* find_active_or_last_menu()
+static ObMenuFrame* find_active_or_last_menu(void)
{
ObMenuFrame *ret = NULL;
client, FALSE);
}
-void event_halt_focus_delay()
+void event_halt_focus_delay(void)
{
/* ignore all enter events up till now */
event_end_ignore_all_enters(1);
ob_main_loop_timeout_remove(ob_main_loop, focus_delay_func);
}
-gulong event_start_ignore_all_enters()
+gulong event_start_ignore_all_enters(void)
{
XSync(ob_display, FALSE);
return LastKnownRequestProcessed(ob_display);
return FALSE;
}
-void event_cancel_all_key_grabs()
+void event_cancel_all_key_grabs(void)
{
if (actions_interactive_act_running()) {
actions_interactive_cancel_act();
return t1 >= t2 && t1 < (t2 + TIME_HALF);
}
-Time event_get_server_time()
+Time event_get_server_time(void)
{
/* Generate a timestamp */
XEvent event;
gboolean extensions_sync = FALSE;
gint extensions_sync_event_basep;
-void extensions_query_all()
+void extensions_query_all(void)
{
gint junk;
(void)junk;
return new;
}
-void focus_nothing()
+void focus_nothing(void)
{
/* Install our own colormap */
if (focus_client != NULL) {
}
}
-void focus_cycle_popup_hide()
+void focus_cycle_popup_hide(void)
{
gulong ignore_start;
screen_hide_desktop_popup();
}
-void focus_cycle_popup_single_hide()
+void focus_cycle_popup_single_hide(void)
{
icon_popup_hide(single_popup);
}
static Time grab_time = CurrentTime;
static gint passive_count = 0;
-static Time ungrab_time()
+static Time ungrab_time(void)
{
Time t = event_curtime;
if (grab_time == CurrentTime ||
return t;
}
-gboolean grab_on_keyboard()
+gboolean grab_on_keyboard(void)
{
return kgrabs > 0;
}
-gboolean grab_on_pointer()
+gboolean grab_on_pointer(void)
{
return pgrabs > 0;
}
if (passive_count < 0) passive_count = 0;
}
-void ungrab_passive_key()
+void ungrab_passive_key(void)
{
/*ob_debug("ungrabbing %d passive grabs\n", passive_count);*/
if (passive_count) {
set_curpos(p);
}
-void keyboard_unbind_all()
+void keyboard_unbind_all(void)
{
tree_destroy(keyboard_firstnode);
keyboard_firstnode = NULL;
menu_clear_entries(menu);
}
-void menu_clear_pipe_caches()
+void menu_clear_pipe_caches(void)
{
/* delete any pipe menus' submenus */
g_hash_table_foreach_remove(menu_hash, menu_pipe_submenu, NULL);
}
}
-gboolean menu_hide_delay_reached()
+gboolean menu_hide_delay_reached(void)
{
return menu_can_hide;
}
menu_frame_free(self);
}
-void menu_frame_hide_all()
+void menu_frame_hide_all(void)
{
GList *it;
mouse_grab_for_client(it->data, grab);
}
-void mouse_unbind_all()
+void mouse_unbind_all(void)
{
gint i;
GSList *it;
}
-static void do_resize()
+static void do_resize(void)
{
gint x, y, w, h, lw, lh;
}
}
-static void cancel_edge_warp()
+static void cancel_edge_warp(void)
{
ob_main_loop_timeout_remove(ob_main_loop, edge_warp_delay_func);
}
#include "render/render.h"
#include "render/theme.h"
-ObPopup *popup_new()
+ObPopup *popup_new(void)
{
XSetWindowAttributes attrib;
ObPopup *self = g_new0(ObPopup, 1);
RrPaint(self->a_icon, self->icon, w, h);
}
-ObIconPopup *icon_popup_new()
+ObIconPopup *icon_popup_new(void)
{
ObIconPopup *self;
}
}
-ObPagerPopup *pager_popup_new()
+ObPagerPopup *pager_popup_new(void)
{
ObPagerPopup *self;
#define CREATE(var, name) (prop_atoms.var = \
XInternAtom(ob_display, name, FALSE))
-void prop_startup()
+void prop_startup(void)
{
CREATE(cardinal, "CARDINAL");
CREATE(window, "WINDOW");
ButtonPressMask | ButtonReleaseMask)
static gboolean screen_validate_layout(ObDesktopLayout *l);
-static gboolean replace_wm();
-static void screen_tell_ksplash();
-static void screen_fallback_focus();
+static gboolean replace_wm(void);
+static void screen_tell_ksplash(void);
+static void screen_fallback_focus(void);
guint screen_num_desktops;
guint screen_num_monitors;
static ObPagerPopup *desktop_popup;
-static gboolean replace_wm()
+static gboolean replace_wm(void)
{
gchar *wm_sn;
Atom wm_sn_atom;
return TRUE;
}
-gboolean screen_annex()
+gboolean screen_annex(void)
{
XSetWindowAttributes attrib;
pid_t pid;
return TRUE;
}
-static void screen_tell_ksplash()
+static void screen_tell_ksplash(void)
{
XEvent e;
char **argv;
screen_desktop_names = NULL;
}
-void screen_resize()
+void screen_resize(void)
{
static gint oldw = 0, oldh = 0;
gint w, h;
screen_set_desktop(num - 1, TRUE);
}
-static void screen_fallback_focus()
+static void screen_fallback_focus(void)
{
ObClient *c;
gboolean allow_omni;
g_free(a);
}
-void screen_hide_desktop_popup()
+void screen_hide_desktop_popup(void)
{
ob_main_loop_timeout_remove(ob_main_loop, hide_desktop_popup_func);
pager_popup_hide(desktop_popup);
return TRUE;
}
-void screen_update_layout()
+void screen_update_layout(void)
{
ObDesktopLayout l;
}
}
-void screen_update_desktop_names()
+void screen_update_desktop_names(void)
{
guint i;
} \
}
-void screen_update_areas()
+void screen_update_areas(void)
{
guint i, j;
gulong *dims;
return most;
}
-Rect* screen_physical_area_all_monitors()
+Rect* screen_physical_area_all_monitors(void)
{
return screen_physical_area_monitor(screen_num_monitors);
}
return RECT_INTERSECTS_RECT(monitor_area[head], *search);
}
-Rect* screen_physical_area_active()
+Rect* screen_physical_area_active(void)
{
Rect *a;
gint x, y;
return a;
}
-void screen_set_root_cursor()
+void screen_set_root_cursor(void)
{
if (sn_app_starting())
XDefineCursor(ob_display, RootWindow(ob_display, ob_screen),
GList *stacking_list = NULL;
-void stacking_set_list()
+void stacking_set_list(void)
{
Window *windows = NULL;
GList *it;
return ret;
}
-gboolean sn_app_starting()
+gboolean sn_app_starting(void)
{
return sn_waits != NULL;
}
g_free(desc);
}
-void sn_spawn_cancel()
+void sn_spawn_cancel(void)
{
sn_launcher_context_complete(sn_launcher);
}
g_free(c);
}
-ObParseInst* parse_startup()
+ObParseInst* parse_startup(void)
{
ObParseInst *i = g_new(ObParseInst, 1);
i->callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, NULL,
return list;
}
-void parse_paths_startup()
+void parse_paths_startup(void)
{
const gchar *path;
(GSListFunc) g_slist_prepend);
}
-void parse_paths_shutdown()
+void parse_paths_shutdown(void)
{
GSList *it;
return ret;
}
-const gchar* parse_xdg_config_home_path()
+const gchar* parse_xdg_config_home_path(void)
{
return xdg_config_home_path;
}
-const gchar* parse_xdg_data_home_path()
+const gchar* parse_xdg_data_home_path(void)
{
return xdg_data_home_path;
}
-GSList* parse_xdg_config_dir_paths()
+GSList* parse_xdg_config_dir_paths(void)
{
return xdg_config_dir_paths;
}
-GSList* parse_xdg_data_dir_paths()
+GSList* parse_xdg_data_dir_paths(void)
{
return xdg_data_dir_paths;
}