diff options
author | markt <markt> | 2007-07-03 21:08:07 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-03 21:08:07 (GMT) |
commit | 823ce0d0175b9b14a549117a303cc9e36e81c1a2 (patch) | |
tree | 0c8fc51a360db9b88f793663cb89eb79d4d76ca5 /src/Window.cc | |
parent | 24c023192fd5757bd1e1308f3aa00a41d0e21728 (diff) | |
download | fluxbox-823ce0d0175b9b14a549117a303cc9e36e81c1a2.zip fluxbox-823ce0d0175b9b14a549117a303cc9e36e81c1a2.tar.bz2 |
stop gvim from repeatedly resizing tabbed windows
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc index af74074..f6fe225 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -2564,6 +2564,15 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) { | |||
2564 | int cx = frame().x(), cy = frame().y(), ignore = 0; | 2564 | int cx = frame().x(), cy = frame().y(), ignore = 0; |
2565 | unsigned int cw = frame().width(), ch = frame().height(); | 2565 | unsigned int cw = frame().width(), ch = frame().height(); |
2566 | 2566 | ||
2567 | // if this is not m_client and m_client has resize_inc, make sure the new | ||
2568 | // size would be ok with m_client | ||
2569 | if (client != m_client && cr.value_mask & CWWidth && | ||
2570 | cr.value_mask & CWHeight && | ||
2571 | !m_client->checkSizeHints(cr.width, cr.height)) { | ||
2572 | sendConfigureNotify(); | ||
2573 | return; | ||
2574 | } | ||
2575 | |||
2567 | if (cr.value_mask & CWBorderWidth) | 2576 | if (cr.value_mask & CWBorderWidth) |
2568 | client->old_bw = cr.border_width; | 2577 | client->old_bw = cr.border_width; |
2569 | 2578 | ||