diff options
Diffstat (limited to 'src/scratchpad.c')
-rw-r--r-- | src/scratchpad.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scratchpad.c b/src/scratchpad.c index 24cde612..20c6f578 100644 --- a/src/scratchpad.c +++ b/src/scratchpad.c @@ -101,8 +101,9 @@ bool scratchpad_show(Con *con) { /* If the current con or any of its parents are in fullscreen mode, we * first need to disable it before showing the scratchpad con. */ Con *fs = focused; - while (fs && fs->fullscreen_mode == CF_NONE) + while (fs && fs->fullscreen_mode == CF_NONE) { fs = fs->parent; + } if (fs && fs->type != CT_WORKSPACE) { con_toggle_fullscreen(fs, CF_OUTPUT); @@ -215,8 +216,9 @@ bool scratchpad_show(Con *con) { * */ static int _gcd(const int m, const int n) { - if (n == 0) + if (n == 0) { return m; + } return _gcd(n, (m % n)); } @@ -254,8 +256,9 @@ void scratchpad_fix_resolution(void) { int new_width = -1, new_height = -1; TAILQ_FOREACH (output, &(croot->nodes_head), nodes) { - if (output == __i3_output) + if (output == __i3_output) { continue; + } DLOG("output %s's resolution: (%d, %d) %d x %d\n", output->name, output->rect.x, output->rect.y, output->rect.width, output->rect.height); |