all repos — fluxbox @ 11a066ec1374e198fbae361aea6d8e967eefbc53

custom fork of the fluxbox windowmanager

some fixes for borderless windows
Mark Tiefenbruck mark@fluxbox.org
commit

11a066ec1374e198fbae361aea6d8e967eefbc53

parent

a39e3e33b5eece4c59a61c202152ad607e546d56

1 files changed, 2 insertions(+), 11 deletions(-)

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

@@ -2192,13 +2192,10 @@ if it's already visible it'll be hidden

*/ void FluxboxWindow::popupMenu() { - int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth(); - if (!decorations.titlebar) // if we don't have any titlebar - menu_y = 0; if (m_last_button_x < x() || m_last_button_x > x() + static_cast<signed>(width())) m_last_button_x = x(); - popupMenu(m_last_button_x, menu_y + frame().y()); + popupMenu(m_last_button_x, frame().titlebarHeight() + frame().y()); }

@@ -3729,13 +3726,7 @@

int FluxboxWindow::initialState() const { return m_client->initial_state; } void FluxboxWindow::fixsize(int *user_w, int *user_h, bool maximizing) { - int titlebar_height = (decorations.titlebar ? - frame().titlebar().height() + - frame().titlebar().borderWidth() : 0); - int handle_height = (decorations.handle ? - frame().handle().height() + - frame().handle().borderWidth() : 0); - int decoration_height = titlebar_height + handle_height; + int decoration_height = frame().titlebarHeight() + frame().handleHeight(); // dx is new width = current width + difference between new and old x values //int dx = frame().width() + frame().x() - m_last_resize_x;