all repos — openbox @ 35818cc2f103844953c7afb77ab2c5c8fd69b442

openbox fork - make it a bit more like ryudo

reconfigure wont break decor highlighting now
Dana Jansens danakj@orodu.net
commit

35818cc2f103844953c7afb77ab2c5c8fd69b442

parent

36db2d24ef4e14cb7f5fa82cba873beceae5c01e

1 files changed, 9 insertions(+), 13 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -237,6 +237,12 @@ setAllowedActions();

enableDecor(True); + if (decorations & Decor_Titlebar) + createTitlebar(); + + if (decorations & Decor_Handle) + createHandle(); + // apply the size and gravity hint to the frame upsize();

@@ -440,14 +446,6 @@ }

} else { decorations = 0; } - - destroyTitlebar(); - if (decorations & Decor_Titlebar) - createTitlebar(); - - destroyHandle(); - if (decorations & Decor_Handle) - createHandle(); } /*

@@ -2718,9 +2716,9 @@ getTransientInfo();

// adjust the window decorations based on transience if (isTransient()) { - decorations &= ~(Decor_Maximize | Decor_Handle); functions &= ~Func_Maximize; setAllowedActions(); + enableDecor(True); } reconfigure();

@@ -2756,17 +2754,15 @@ // regrabbed.

ungrabButtons(); if (client.max_width <= client.min_width && client.max_height <= client.min_height) { - decorations &= ~(Decor_Maximize | Decor_Handle); functions &= ~(Func_Resize | Func_Maximize); } else { - if (! isTransient()) { - decorations |= Decor_Maximize | Decor_Handle; + if (! isTransient()) functions |= Func_Maximize; - } functions |= Func_Resize; } grabButtons(); setAllowedActions(); + enableDecor(True); } Rect old_rect = frame.rect;