move some code around
This commit is contained in:
parent
2815393751
commit
855ff278af
2 changed files with 7 additions and 9 deletions
|
@ -871,8 +871,13 @@ void FbWinFrame::reconfigure() {
|
||||||
gravityTranslate(grav_x, grav_y, -m_active_gravity, m_active_orig_client_bw, false);
|
gravityTranslate(grav_x, grav_y, -m_active_gravity, m_active_orig_client_bw, false);
|
||||||
|
|
||||||
m_bevel = theme()->bevelWidth();
|
m_bevel = theme()->bevelWidth();
|
||||||
// reconfigure can't set borderwidth, as it doesn't know
|
setBorderWidth(m_decoration_mask & DECORM_BORDER ?
|
||||||
// if it's meant to be borderless or not
|
theme()->border().width() : 0);
|
||||||
|
|
||||||
|
if (m_decoration_mask & DECORM_HANDLE && theme()->handleWidth() != 0)
|
||||||
|
showHandle();
|
||||||
|
else
|
||||||
|
hideHandle();
|
||||||
|
|
||||||
unsigned int orig_handle_h = handle().height();
|
unsigned int orig_handle_h = handle().height();
|
||||||
if (m_use_handle && orig_handle_h != theme()->handleWidth())
|
if (m_use_handle && orig_handle_h != theme()->handleWidth())
|
||||||
|
|
|
@ -4077,13 +4077,6 @@ void FluxboxWindow::updateButtons() {
|
||||||
*/
|
*/
|
||||||
void FluxboxWindow::reconfigTheme() {
|
void FluxboxWindow::reconfigTheme() {
|
||||||
|
|
||||||
m_frame.setBorderWidth(decorations.border ?
|
|
||||||
frame().theme()->border().width() : 0);
|
|
||||||
if (decorations.handle && frame().theme()->handleWidth() != 0)
|
|
||||||
frame().showHandle();
|
|
||||||
else
|
|
||||||
frame().hideHandle();
|
|
||||||
|
|
||||||
ClientList::iterator it = clientList().begin();
|
ClientList::iterator it = clientList().begin();
|
||||||
ClientList::iterator it_end = clientList().end();
|
ClientList::iterator it_end = clientList().end();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue