diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-22 01:12:08 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-22 01:12:08 +0100 |
commit | 638b0ed001b595f1303239092ffddaa9c29078e0 (patch) | |
tree | 44f0c236862a22a880205a64f299b96a04d80674 /src | |
parent | f34153a2f385818c3820b37c20cde4e1054ccce1 (diff) | |
download | ratpoison-638b0ed001b595f1303239092ffddaa9c29078e0.zip |
Style nits, typo and non-existing functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 2 | ||||
-rw-r--r-- | src/data.h | 2 | ||||
-rw-r--r-- | src/screen.c | 11 | ||||
-rw-r--r-- | src/screen.h | 4 |
4 files changed, 8 insertions, 11 deletions
diff --git a/src/actions.c b/src/actions.c index acfb466..bcefe0b 100644 --- a/src/actions.c +++ b/src/actions.c @@ -4952,7 +4952,7 @@ cmd_tmpwm (int interactive UNUSED, struct cmdarg **args) that are unmapped or destroyed. */ list_for_each_entry (cur_screen, &rp_screens, node) { - sync_wins (cur_screen); + sync_wins (cur_screen); } /* At this point, new windows have the top level keys grabbed but @@ -166,7 +166,7 @@ struct rp_screen GC normal_gc, inverse_gc; Window root, bar_window, key_window, input_window, frame_window, help_window; int bar_is_raised; - int screen_num; /* Our screen number as dictated my X */ + int screen_num; /* Our screen number as dictated by X */ Colormap def_cmap; Cursor rat; diff --git a/src/screen.c b/src/screen.c index d3a4d87..7224f57 100644 --- a/src/screen.c +++ b/src/screen.c @@ -181,7 +181,7 @@ is_a_root_window (unsigned int w) } rp_screen * -screen_at(int index) +screen_at (int index) { int i = 0; rp_screen *cur; @@ -212,7 +212,7 @@ screen_cmp_left (void *priv, struct list_head *a, struct list_head *b) } void -screen_sort(void) +screen_sort (void) { return list_sort (NULL, &rp_screens, screen_cmp_left); } @@ -230,7 +230,7 @@ init_global_screen (rp_global_screen *s) } void -init_screens () +init_screens (void) { int i; int screen_count; @@ -265,14 +265,13 @@ init_screens () screen_sort (); - if (rr_outputs) - free (rr_outputs); + free (rr_outputs); } static void init_rat_cursor (rp_screen *s) { - s->rat = XCreateFontCursor( dpy, XC_icon ); + s->rat = XCreateFontCursor (dpy, XC_icon); } static void diff --git a/src/screen.h b/src/screen.h index eef6c42..7d85951 100644 --- a/src/screen.h +++ b/src/screen.h @@ -35,7 +35,7 @@ void frameset_free (struct list_head *head); rp_frame *screen_get_frame (rp_screen *s, int frame_num); rp_frame *screen_find_frame_by_frame (rp_screen *s, rp_frame *f); -void init_screens (); +void init_screens (void); void activate_screen (rp_screen *s); void deactivate_screen (rp_screen *s); @@ -53,8 +53,6 @@ rp_screen *screen_prev(void); rp_screen *screen_at (int index); -rp_screen *screen_by_output(int rr_output); -rp_screen *screen_by_crtc(int rr_crtc); void screen_sort(void); rp_screen *screen_add(int rr_output); |