all repos — fluxbox @ f223711cf1b5097c470d62d8db704e0b026b9afd

custom fork of the fluxbox windowmanager

fixed so we call setupWindow last in init(), else we dont get anything in the titlebar if we dont have some special option like remember enabled
fluxgen fluxgen
commit

f223711cf1b5097c470d62d8db704e0b026b9afd

parent

1a02439df1520a97e389a81a843df79d9b04e1d0

2 files changed, 13 insertions(+), 5 deletions(-)

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

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.294 2004/08/10 12:05:47 fluxgen Exp $ +// $Id: Window.cc,v 1.295 2004/08/10 19:18:48 fluxgen Exp $ #include "Window.hh"

@@ -575,7 +575,10 @@ setFocusFlag(false);

if (m_shaped) shape(); - FbTk::App::instance()->sync(false); + + setupWindow(); + + FbTk::App::instance()->sync(false); } /// apply shape to this window

@@ -3410,7 +3413,7 @@ menu->setInternalMenu();

menu->disableTitle(); m_extramenus.push_back(std::make_pair(label, menu)); - setupWindow(); + setupMenu(); } void FluxboxWindow::removeExtraMenu(FbTk::Menu *menu) {

@@ -3422,7 +3425,7 @@ m_extramenus.erase(it);

break; } } - setupWindow(); + setupMenu(); } void FluxboxWindow::close() {

@@ -3524,6 +3527,10 @@ frame().setDoubleClickTime(Fluxbox::instance()->getDoubleClickInterval());

// end setup frame + setupMenu(); +} + +void FluxboxWindow::setupMenu() { // setup menu menu().removeAll(); // clear old items
M src/Window.hhsrc/Window.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.hh,v 1.117 2004/08/10 12:05:47 fluxgen Exp $ +// $Id: Window.hh,v 1.118 2004/08/10 19:18:47 fluxgen Exp $ #ifndef WINDOW_HH #define WINDOW_HH

@@ -384,6 +384,7 @@ private:

static const int PropBlackboxAttributesElements = 8; void setupWindow(); + void setupMenu(); void init(); /// applies a shape mask to the window if it has one