reconfigure wont break decor highlighting now
This commit is contained in:
parent
36db2d24ef
commit
35818cc2f1
1 changed files with 9 additions and 13 deletions
|
@ -237,6 +237,12 @@ BlackboxWindow::BlackboxWindow(Blackbox *b, Window w, BScreen *s) {
|
||||||
|
|
||||||
enableDecor(True);
|
enableDecor(True);
|
||||||
|
|
||||||
|
if (decorations & Decor_Titlebar)
|
||||||
|
createTitlebar();
|
||||||
|
|
||||||
|
if (decorations & Decor_Handle)
|
||||||
|
createHandle();
|
||||||
|
|
||||||
// apply the size and gravity hint to the frame
|
// apply the size and gravity hint to the frame
|
||||||
|
|
||||||
upsize();
|
upsize();
|
||||||
|
@ -440,14 +446,6 @@ void BlackboxWindow::enableDecor(bool enable) {
|
||||||
} else {
|
} else {
|
||||||
decorations = 0;
|
decorations = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
destroyTitlebar();
|
|
||||||
if (decorations & Decor_Titlebar)
|
|
||||||
createTitlebar();
|
|
||||||
|
|
||||||
destroyHandle();
|
|
||||||
if (decorations & Decor_Handle)
|
|
||||||
createHandle();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2718,9 +2716,9 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
|
||||||
|
|
||||||
// adjust the window decorations based on transience
|
// adjust the window decorations based on transience
|
||||||
if (isTransient()) {
|
if (isTransient()) {
|
||||||
decorations &= ~(Decor_Maximize | Decor_Handle);
|
|
||||||
functions &= ~Func_Maximize;
|
functions &= ~Func_Maximize;
|
||||||
setAllowedActions();
|
setAllowedActions();
|
||||||
|
enableDecor(True);
|
||||||
}
|
}
|
||||||
|
|
||||||
reconfigure();
|
reconfigure();
|
||||||
|
@ -2756,17 +2754,15 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
|
||||||
ungrabButtons();
|
ungrabButtons();
|
||||||
if (client.max_width <= client.min_width &&
|
if (client.max_width <= client.min_width &&
|
||||||
client.max_height <= client.min_height) {
|
client.max_height <= client.min_height) {
|
||||||
decorations &= ~(Decor_Maximize | Decor_Handle);
|
|
||||||
functions &= ~(Func_Resize | Func_Maximize);
|
functions &= ~(Func_Resize | Func_Maximize);
|
||||||
} else {
|
} else {
|
||||||
if (! isTransient()) {
|
if (! isTransient())
|
||||||
decorations |= Decor_Maximize | Decor_Handle;
|
|
||||||
functions |= Func_Maximize;
|
functions |= Func_Maximize;
|
||||||
}
|
|
||||||
functions |= Func_Resize;
|
functions |= Func_Resize;
|
||||||
}
|
}
|
||||||
grabButtons();
|
grabButtons();
|
||||||
setAllowedActions();
|
setAllowedActions();
|
||||||
|
enableDecor(True);
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect old_rect = frame.rect;
|
Rect old_rect = frame.rect;
|
||||||
|
|
Loading…
Reference in a new issue