c++ comments
This commit is contained in:
parent
5c95d2ffea
commit
6ec1881579
2 changed files with 11 additions and 10 deletions
|
@ -3008,10 +3008,11 @@ void client_set_undecorated(ObClient *self, gboolean undecorated)
|
||||||
if (self->undecorated != undecorated) {
|
if (self->undecorated != undecorated) {
|
||||||
self->undecorated = undecorated;
|
self->undecorated = undecorated;
|
||||||
client_setup_decor_and_functions(self);
|
client_setup_decor_and_functions(self);
|
||||||
// Make sure the client knows it might have moved. Maybe there is a
|
/* Make sure the client knows it might have moved. Maybe there is a
|
||||||
// better way of doing this so only one client_configure is sent, but
|
* better way of doing this so only one client_configure is sent, but
|
||||||
// since 125 of these are sent per second when moving the window (with
|
* since 125 of these are sent per second when moving the window (with
|
||||||
// user = FALSE) i doubt it matters much.
|
* user = FALSE) i doubt it matters much.
|
||||||
|
*/
|
||||||
client_configure(self, OB_CORNER_TOPLEFT, self->area.x, self->area.y,
|
client_configure(self, OB_CORNER_TOPLEFT, self->area.x, self->area.y,
|
||||||
self->area.width, self->area.height, TRUE, TRUE);
|
self->area.width, self->area.height, TRUE, TRUE);
|
||||||
client_change_state(self); /* reflect this in the state hints */
|
client_change_state(self); /* reflect this in the state hints */
|
||||||
|
|
|
@ -578,35 +578,35 @@ static void layout_title(ObFrame *self)
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
if (d) { *lc = ' '; break; } /* rm duplicates */
|
if (d) { *lc = ' '; break; }
|
||||||
d = TRUE;
|
d = TRUE;
|
||||||
self->label_width -= (ob_rr_theme->button_size +
|
self->label_width -= (ob_rr_theme->button_size +
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
if (s) { *lc = ' '; break; } /* rm duplicates */
|
if (s) { *lc = ' '; break; }
|
||||||
s = TRUE;
|
s = TRUE;
|
||||||
self->label_width -= (ob_rr_theme->button_size +
|
self->label_width -= (ob_rr_theme->button_size +
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
break;
|
break;
|
||||||
case 'I':
|
case 'I':
|
||||||
if (i) { *lc = ' '; break; } /* rm duplicates */
|
if (i) { *lc = ' '; break; }
|
||||||
i = TRUE;
|
i = TRUE;
|
||||||
self->label_width -= (ob_rr_theme->button_size +
|
self->label_width -= (ob_rr_theme->button_size +
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
break;
|
break;
|
||||||
case 'L':
|
case 'L':
|
||||||
if (l) { *lc = ' '; break; } /* rm duplicates */
|
if (l) { *lc = ' '; break; }
|
||||||
l = TRUE;
|
l = TRUE;
|
||||||
break;
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
if (m) { *lc = ' '; break; } /* rm duplicates */
|
if (m) { *lc = ' '; break; }
|
||||||
m = TRUE;
|
m = TRUE;
|
||||||
self->label_width -= (ob_rr_theme->button_size +
|
self->label_width -= (ob_rr_theme->button_size +
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'C':
|
||||||
if (c) { *lc = ' '; break; } /* rm duplicates */
|
if (c) { *lc = ' '; break; }
|
||||||
c = TRUE;
|
c = TRUE;
|
||||||
self->label_width -= (ob_rr_theme->button_size +
|
self->label_width -= (ob_rr_theme->button_size +
|
||||||
ob_rr_theme->padding + 1);
|
ob_rr_theme->padding + 1);
|
||||||
|
|
Loading…
Reference in a new issue