}
} /* done parsing geometry string */
else if (!(flags & geometrySet))
- { /* default geometry - scaled and centered */
+ {
+ /* default geometry - scaled and centered */
x = y = defaultAlign;
w = h = defaultScale;
}
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;
++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)
{
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)
{
flags &= ~isVtOrigin;
if (pixmap != None)
- { /* set target's background to pixmap */
+ {
+ /* set target's background to pixmap */
# ifdef ENABLE_TRANSPARENCY
if (flags & isTransparent)
{
}
}
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 ? */
priv = 0;
ch = cmd_getc ();
if (ch >= '<' && ch <= '?')
- { /* '<' '=' '>' '?' */
+ {
+ /* '<' '=' '>' '?' */
priv = ch;
ch = cmd_getc ();
}
unicode_t ch, cmd = cmd_getc ();
if (cmd == 'Q')
- { /* query graphics */
+ {
+ /* query graphics */
tt_printf ("\033G0\012"); /* no graphics */
return;
}
char *login;
if (option (Opt_console))
- { /* be virtual console, fail silently */
+ {
+ /* be virtual console, fail silently */
#ifdef TIOCCONS
unsigned int on = 1;
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);
}
|| (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;
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);
--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;
}
* 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
*/
}
}
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
}
if (button3 && buttonpress)
- { /* mark may need to be changed */
+ {
+ /* mark may need to be changed */
if (closeto == LEFT)
{
selection.mark.row = selection.end.row;
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;
}
}
}
else
- { /* boolean value */
+ {
+ /* boolean value */
set_option (optList[entry].index, flag == resval_on);
if (optList[entry].doff != -1)