]> Dogcows Code - chaz/openbox/commitdiff
rm a redundant actiondata struct
authorDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 20:59:20 +0000 (20:59 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 20:59:20 +0000 (20:59 +0000)
openbox/action.c
openbox/action.h

index 342f0a8689d01011eb7fc74eb401fd09d719165c..6b98bcb251bf8c878e473e2f1477acccea5d8910 100644 (file)
@@ -365,17 +365,17 @@ void action_toggle_maximize_vert(union ActionData *data)
 
 void action_send_to_desktop(union ActionData *data)
 {
-    if (data->sendto.c)
-        if (data->sendto.desktop < screen_num_desktops ||
-            data->sendto.desktop == DESKTOP_ALL)
-            client_set_desktop(data->sendto.c, data->sendto.desktop, TRUE);
+    if (data->desktop.c)
+        if (data->desktop.desk < screen_num_desktops ||
+            data->desktop.desk == DESKTOP_ALL)
+            client_set_desktop(data->desktop.c, data->desktop.desk, TRUE);
 }
 
 void action_send_to_next_desktop(union ActionData *data)
 {
     guint d;
 
-    if (!data->sendto.c) return;
+    if (!data->sendtonextprev.c) return;
 
     d = screen_desktop + 1;
     if (d >= screen_num_desktops) {
@@ -390,7 +390,7 @@ void action_send_to_previous_desktop(union ActionData *data)
 {
     guint d;
 
-    if (!data->sendto.c) return;
+    if (!data->sendtonextprev.c) return;
 
     d = screen_desktop - 1;
     if (d >= screen_num_desktops) {
index ff99af99dbad2e74cff235b7779c41a72967f5be..a8f37e1574c5f20a0397503c1f1b9835321feba0 100644 (file)
@@ -26,11 +26,6 @@ struct MoveResizeRelative {
     int delta;
 };
 
-struct SendToDesktop {
-    Client *c;
-    guint desktop;
-};
-
 struct SendToNextPreviousDesktop {
     Client *c;
     gboolean wrap;
@@ -72,7 +67,6 @@ union ActionData {
     struct Execute execute;
     struct ClientAction client;
     struct MoveResizeRelative relative;
-    struct SendToDesktop sendto;
     struct SendToNextPreviousDesktop sendtonextprev;
     struct Desktop desktop;
     struct NextPreviousDesktop nextprevdesktop;
@@ -161,7 +155,7 @@ void action_maximize_vert(union ActionData *data);
 void action_unmaximize_vert(union ActionData *data);
 /* ClientAction */
 void action_toggle_maximize_vert(union ActionData *data);
-/* SendToDesktop */
+/* Desktop */
 void action_send_to_desktop(union ActionData *data);
 /* SendToNextPreviousDesktop */
 void action_send_to_next_desktop(union ActionData *data);
This page took 0.02946 seconds and 4 git commands to generate.