From: ayin Date: Mon, 26 Nov 2007 11:20:13 +0000 (+0000) Subject: Cosmetics. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=cb729cb2ad53e2bbac4607e7a0e497fa8c13f090;p=dana%2Furxvt.git Cosmetics. --- diff --git a/src/background.C b/src/background.C index f703f040..6b27d073 100644 --- a/src/background.C +++ b/src/background.C @@ -350,7 +350,8 @@ bgPixmap_t::set_geometry (const char *geom) } } /* done parsing geometry string */ else if (!(flags & geometrySet)) - { /* default geometry - scaled and centered */ + { + /* default geometry - scaled and centered */ x = y = defaultAlign; w = h = defaultScale; } @@ -863,7 +864,8 @@ bgPixmap_t::make_transparency_pixmap () return 0; if (root_pixmap == None) - { /* use tricks to obtain the root background image :*/ + { + /* use tricks to obtain the root background image :*/ /* we want to create Overrideredirect window overlapping out window with background type of Parent Relative and then grab it */ XSetWindowAttributes attr; @@ -893,7 +895,8 @@ bgPixmap_t::make_transparency_pixmap () ++ev_count; if (ev_count > 0); - { /* hooray! - we can grab the image! */ + { + /* hooray! - we can grab the image! */ gc = XCreateGC (dpy, root, 0, NULL); if (gc) { @@ -1188,7 +1191,8 @@ bgPixmap_t::render () pmap_depth = target->depth; } if (pmap_depth != result->depth) - { /* Bad Match error will ensue ! stupid X !!!! */ + { + /* Bad Match error will ensue ! stupid X !!!! */ if( result->depth == 24 && pmap_depth == 32) result->depth = 32; else if( result->depth == 32 && pmap_depth == 24) @@ -1244,7 +1248,8 @@ bgPixmap_t::apply() { flags &= ~isVtOrigin; if (pixmap != None) - { /* set target's background to pixmap */ + { + /* set target's background to pixmap */ # ifdef ENABLE_TRANSPARENCY if (flags & isTransparent) { @@ -1270,7 +1275,8 @@ bgPixmap_t::apply() } } else - { /* set target background to a pixel */ + { + /* set target background to a pixel */ XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]); /* do we also need to set scrollbar's background here ? */ diff --git a/src/command.C b/src/command.C index 72552b46..6db39bcf 100644 --- a/src/command.C +++ b/src/command.C @@ -2753,7 +2753,8 @@ rxvt_term::process_csi_seq () priv = 0; ch = cmd_getc (); if (ch >= '<' && ch <= '?') - { /* '<' '=' '>' '?' */ + { + /* '<' '=' '>' '?' */ priv = ch; ch = cmd_getc (); } @@ -3896,7 +3897,8 @@ rxvt_term::process_graphics () unicode_t ch, cmd = cmd_getc (); if (cmd == 'Q') - { /* query graphics */ + { + /* query graphics */ tt_printf ("\033G0\012"); /* no graphics */ return; } diff --git a/src/init.C b/src/init.C index 67612dfd..101ec96a 100644 --- a/src/init.C +++ b/src/init.C @@ -1415,7 +1415,8 @@ rxvt_term::run_child (const char *const *argv) char *login; if (option (Opt_console)) - { /* be virtual console, fail silently */ + { + /* be virtual console, fail silently */ #ifdef TIOCCONS unsigned int on = 1; diff --git a/src/screen.C b/src/screen.C index c6c95429..71ea9bab 100644 --- a/src/screen.C +++ b/src/screen.C @@ -1188,7 +1188,8 @@ rxvt_term::scr_gotorc (int row, int col, int relative) NOTHROW else { if (screen.flags & Screen_Relative) - { /* relative origin mode */ + { + /* relative origin mode */ screen.cur.row = row + screen.tscroll; min_it (screen.cur.row, screen.bscroll); } @@ -1474,7 +1475,8 @@ rxvt_term::scr_insdel_chars (int count, int insdel) NOTHROW || (selection.end.col + count >= ncol)) CLEAR_SELECTION (); else - { /* shift selection */ + { + /* shift selection */ selection.beg.col += count; selection.mark.col += count; /* XXX: yes? */ selection.end.col += count; @@ -2854,7 +2856,8 @@ void rxvt_term::selection_request (Time tm, int selnum) NOTHROW { if (selection.text && selnum == Sel_Primary) - { /* internal selection */ + { + /* internal selection */ char *str = rxvt_wcstombs (selection.text, selection.len); paste (str, strlen (str)); free (str); @@ -3132,7 +3135,8 @@ rxvt_term::selection_start_colrow (int col, int row) NOTHROW --selection.mark.col; if (selection.op) - { /* clear the old selection */ + { + /* clear the old selection */ selection.beg.row = selection.end.row = selection.mark.row; selection.beg.col = selection.end.col = selection.mark.col; } @@ -3331,7 +3335,8 @@ rxvt_term::selection_extend_colrow (int32_t col, int32_t row, int button3, int b * time of the most recent button3 press */ if (button3 && buttonpress) - { /* button3 press */ + { + /* button3 press */ /* * first determine which edge of the selection we are closest to */ @@ -3359,7 +3364,8 @@ rxvt_term::selection_extend_colrow (int32_t col, int32_t row, int button3, int b } } else - { /* button1 drag or button3 drag */ + { + /* button1 drag or button3 drag */ if (ROWCOL_IS_AFTER (selection.mark, pos)) { if (selection.mark.row == selection.end.row @@ -3450,7 +3456,8 @@ rxvt_term::selection_extend_colrow (int32_t col, int32_t row, int button3, int b } if (button3 && buttonpress) - { /* mark may need to be changed */ + { + /* mark may need to be changed */ if (closeto == LEFT) { selection.mark.row = selection.end.row; diff --git a/src/xdefaults.C b/src/xdefaults.C index 90d96917..42e0e439 100644 --- a/src/xdefaults.C +++ b/src/xdefaults.C @@ -427,7 +427,8 @@ rxvt_usage (int type) len += 4 + strlen (optList[i].opt) + (optList_isBool (i) ? 2: 0); col += len; if (col > 79) - { /* assume regular width */ + { + /* assume regular width */ rxvt_log ("\n"); col = 1 + len; } @@ -555,7 +556,8 @@ rxvt_term::get_options (int argc, const char *const *argv) } } else - { /* boolean value */ + { + /* boolean value */ set_option (optList[entry].index, flag == resval_on); if (optList[entry].doff != -1)