summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-05 17:46:34 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-05 17:46:34 +0100
commita5ee817f2b81c98266c87f29171b82472fae5bfa (patch)
tree07fb2045d21ed5fccd8cc27804ee24b6bfb4ec65
parenta26ca7a0560f17513217b1c1190949a6c0cbd8f5 (diff)
downloadratpoison-a5ee817f2b81c98266c87f29171b82472fae5bfa.zip
Kill code #if 0'ed since 2001.
-rw-r--r--src/window.c105
1 files changed, 0 insertions, 105 deletions
diff --git a/src/window.c b/src/window.c
index 8955919..687073b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -452,111 +452,6 @@ give_window_focus (rp_window *win, rp_window *last_win)
XSync (dpy, False);
}
-#if 0
-void
-unhide_transient_for (rp_window *win)
-{
- rp_frame *frame;
- rp_window *transient_for;
-
- if (win == NULL) return;
- if (!win->transient) return;
- frame = find_windows_frame (win);
-
- transient_for = find_window (win->transient_for);
- if (transient_for == NULL)
- {
- PRINT_DEBUG (("Can't find transient_for for '%s'\n", win->name ));
- return;
- }
-
- if (find_windows_frame (transient_for) == NULL)
- {
- set_frames_window (frame, transient_for);
- maximize (transient_for);
-
- PRINT_DEBUG (("unhide transient window: %s\n", transient_for->name));
-
- unhide_window_below (transient_for);
-
- if (transient_for->transient)
- {
- unhide_transient_for (transient_for);
- }
-
- set_frames_window (frame, win);
- }
- else if (transient_for->transient)
- {
- unhide_transient_for (transient_for);
- }
-}
-#endif
-
-#if 0
-/* Hide all transient windows for win until we get to last. */
-void
-hide_transient_for_between (rp_window *win, rp_window *last)
-{
- rp_window *transient_for;
-
- if (win == NULL) return;
- if (!win->transient) return;
-
- transient_for = find_window (win->transient_for);
- if (transient_for == last)
- {
- PRINT_DEBUG (("Can't find transient_for for '%s'\n", win->name ));
- return;
- }
-
- if (find_windows_frame (transient_for) == NULL)
- {
- PRINT_DEBUG (("hide transient window: %s\n", transient_for->name));
- hide_window (transient_for);
- }
-
- if (transient_for->transient)
- {
- hide_transient_for (transient_for);
- }
-}
-#endif
-
-#if 0
-void
-hide_transient_for (rp_window *win)
-{
- /* Hide ALL the transient windows for win. */
- hide_transient_for_between (win, NULL);
-}
-#endif
-
-#if 0
-/* return 1 if transient_for is a transient window for win or one of
- win's transient_for ancestors. */
-int
-is_transient_ancestor (rp_window *win, rp_window *transient_for)
-{
- rp_window *tmp;
-
- if (win == NULL) return 0;
- if (!win->transient) return 0;
- if (transient_for == NULL) return 0;
-
- tmp = win;
-
- do
- {
- tmp = find_window (tmp->transient_for);
- if (tmp == transient_for)
- return 1;
- } while (tmp && tmp->transient);
-
- return 0;
-}
-#endif
-
/* Gets frame from window -- helper to set_active_window_body
*
* While this fct returns a value, it also modifies a param, last_frame,