some fixes for borderless windows
This commit is contained in:
parent
a39e3e33b5
commit
11a066ec13
1 changed files with 2 additions and 11 deletions
|
@ -2192,13 +2192,10 @@ void FluxboxWindow::popupMenu(int x, int y) {
|
||||||
*/
|
*/
|
||||||
void FluxboxWindow::popupMenu() {
|
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()))
|
if (m_last_button_x < x() || m_last_button_x > x() + static_cast<signed>(width()))
|
||||||
m_last_button_x = x();
|
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 @@ unsigned int FluxboxWindow::normalHeight() const {
|
||||||
int FluxboxWindow::initialState() const { return m_client->initial_state; }
|
int FluxboxWindow::initialState() const { return m_client->initial_state; }
|
||||||
|
|
||||||
void FluxboxWindow::fixsize(int *user_w, int *user_h, bool maximizing) {
|
void FluxboxWindow::fixsize(int *user_w, int *user_h, bool maximizing) {
|
||||||
int titlebar_height = (decorations.titlebar ?
|
int decoration_height = frame().titlebarHeight() + frame().handleHeight();
|
||||||
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;
|
|
||||||
|
|
||||||
// dx is new width = current width + difference between new and old x values
|
// dx is new width = current width + difference between new and old x values
|
||||||
//int dx = frame().width() + frame().x() - m_last_resize_x;
|
//int dx = frame().width() + frame().x() - m_last_resize_x;
|
||||||
|
|
Loading…
Reference in a new issue