fixed y offset error on ConfigureRequestEvent
fluxgen fluxgen
1 files changed,
5 insertions(+),
6 deletions(-)
jump to
M
src/Window.cc
→
src/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.136 2003/04/15 18:55:33 fluxgen Exp $ +// $Id: Window.cc,v 1.137 2003/04/15 21:38:23 fluxgen Exp $ #include "Window.hh"@@ -2092,9 +2092,7 @@ return;
int cx = m_frame.x(), cy = m_frame.y(); unsigned int cw = m_frame.width(), ch = m_frame.height(); - unsigned int titlebar_y = (decorations.titlebar ? - m_frame.titlebar().height() + frame().titlebar().borderWidth() - : 0); + if (cr.value_mask & CWBorderWidth) client->old_bw = cr.border_width;@@ -2102,7 +2100,7 @@ if (cr.value_mask & CWX)
cx = cr.x; if (cr.value_mask & CWY) - cy = cr.y - titlebar_y; + cy = cr.y; if (cr.value_mask & CWWidth) cw = cr.width;@@ -2110,8 +2108,9 @@
if (cr.value_mask & CWHeight) ch = cr.height; + // whether we should send ConfigureNotify to clients + bool send_notify = false; - bool send_notify = false; // the request is for client window so we resize the frame to it first if (frame().width() != cw || frame().height() != ch) { frame().resizeForClient(cw, ch);