From e48325700788622cc82b34f1ede5f02f74911d41 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 24 May 2003 09:11:42 +0000 Subject: soem changes to desktop actions. instead of having *wrap actions, just default to having wrap on, and let it be optionally placed into the rc to disable it. instead of next/prev desktop, just have actions for desktop to the right/left/up/down. this applies to sendtodesktop actions too. --- openbox/action.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'openbox/action.h') diff --git a/openbox/action.h b/openbox/action.h index 9066b6ef..f7c372a4 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -37,7 +37,7 @@ struct SendToDesktop { gboolean follow; }; -struct SendToNextPreviousDesktop { +struct SendToDesktopDirection { Client *c; gboolean wrap; gboolean follow; @@ -53,7 +53,7 @@ struct Layer { int layer; /* < 0 = below, 0 = normal, > 0 = above */ }; -struct NextPreviousDesktop { +struct DesktopDirection { Client *c; gboolean wrap; }; @@ -88,9 +88,9 @@ union ActionData { struct ClientAction client; struct MoveResizeRelative relative; struct SendToDesktop sendto; - struct SendToNextPreviousDesktop sendtonextprev; + struct SendToDesktopDirection sendtodir; struct Desktop desktop; - struct NextPreviousDesktop nextprevdesktop; + struct DesktopDirection desktopdir; struct MoveResize moveresize; struct ShowMenu showmenu; struct CycleWindows cycle; @@ -180,24 +180,24 @@ void action_unmaximize_vert(union ActionData *data); void action_toggle_maximize_vert(union ActionData *data); /* SendToDesktop */ void action_send_to_desktop(union ActionData *data); -/* SendToNextPreviousDesktop */ -void action_send_to_next_desktop(union ActionData *data); -/* SendToNextPreviousDesktop */ -void action_send_to_previous_desktop(union ActionData *data); +/* SendToDesktopDirection */ +void action_send_to_desktop_right(union ActionData *data); +/* SendToDesktopDirection */ +void action_send_to_desktop_left(union ActionData *data); +/* SendToDesktopDirection */ +void action_send_to_desktop_up(union ActionData *data); +/* SendToDesktopDirection */ +void action_send_to_desktop_down(union ActionData *data); /* Desktop */ void action_desktop(union ActionData *data); -/* NextPreviousDesktop */ -void action_next_desktop(union ActionData *data); -/* NextPreviousDesktop */ -void action_previous_desktop(union ActionData *data); -/* NextPreviousDesktop */ -void action_next_desktop_column(union ActionData *data); -/* NextPreviousDesktop */ -void action_previous_desktop_column(union ActionData *data); -/* NextPreviousDesktop */ -void action_next_desktop_row(union ActionData *data); -/* NextPreviousDesktop */ -void action_previous_desktop_row(union ActionData *data); +/* DesktopDirection */ +void action_desktop_right(union ActionData *data); +/* DesktopDirection */ +void action_desktop_left(union ActionData *data); +/* DesktopDirection */ +void action_desktop_up(union ActionData *data); +/* DesktopDirection */ +void action_desktop_down(union ActionData *data); /* ClientAction */ void action_toggle_decorations(union ActionData *data); /* MoveResize */ -- cgit v1.2.3