diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-06-05 11:04:43 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-06-05 11:04:43 (GMT) |
commit | 11a066ec1374e198fbae361aea6d8e967eefbc53 (patch) | |
tree | ec67535088dd8b5779c4d3fc8e3486e54bf7ac64 /src | |
parent | a39e3e33b5eece4c59a61c202152ad607e546d56 (diff) | |
download | fluxbox_lack-11a066ec1374e198fbae361aea6d8e967eefbc53.zip fluxbox_lack-11a066ec1374e198fbae361aea6d8e967eefbc53.tar.bz2 |
some fixes for borderless windows
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Window.cc b/src/Window.cc index b9a454b..e56f735 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -2192,13 +2192,10 @@ void FluxboxWindow::popupMenu(int x, int y) { | |||
2192 | */ | 2192 | */ |
2193 | void FluxboxWindow::popupMenu() { | 2193 | void FluxboxWindow::popupMenu() { |
2194 | 2194 | ||
2195 | int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth(); | ||
2196 | if (!decorations.titlebar) // if we don't have any titlebar | ||
2197 | menu_y = 0; | ||
2198 | if (m_last_button_x < x() || m_last_button_x > x() + static_cast<signed>(width())) | 2195 | if (m_last_button_x < x() || m_last_button_x > x() + static_cast<signed>(width())) |
2199 | m_last_button_x = x(); | 2196 | m_last_button_x = x(); |
2200 | 2197 | ||
2201 | popupMenu(m_last_button_x, menu_y + frame().y()); | 2198 | popupMenu(m_last_button_x, frame().titlebarHeight() + frame().y()); |
2202 | } | 2199 | } |
2203 | 2200 | ||
2204 | 2201 | ||
@@ -3729,13 +3726,7 @@ unsigned int FluxboxWindow::normalHeight() const { | |||
3729 | int FluxboxWindow::initialState() const { return m_client->initial_state; } | 3726 | int FluxboxWindow::initialState() const { return m_client->initial_state; } |
3730 | 3727 | ||
3731 | void FluxboxWindow::fixsize(int *user_w, int *user_h, bool maximizing) { | 3728 | void FluxboxWindow::fixsize(int *user_w, int *user_h, bool maximizing) { |
3732 | int titlebar_height = (decorations.titlebar ? | 3729 | int decoration_height = frame().titlebarHeight() + frame().handleHeight(); |
3733 | frame().titlebar().height() + | ||
3734 | frame().titlebar().borderWidth() : 0); | ||
3735 | int handle_height = (decorations.handle ? | ||
3736 | frame().handle().height() + | ||
3737 | frame().handle().borderWidth() : 0); | ||
3738 | int decoration_height = titlebar_height + handle_height; | ||
3739 | 3730 | ||
3740 | // dx is new width = current width + difference between new and old x values | 3731 | // dx is new width = current width + difference between new and old x values |
3741 | //int dx = frame().width() + frame().x() - m_last_resize_x; | 3732 | //int dx = frame().width() + frame().x() - m_last_resize_x; |