do not start window resizing on top border

pull/40/head
TomasM 2017-11-04 07:14:25 -04:00
parent b3d4c1f9b1
commit 9655869004
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
m_button_grab_y = y - frame().y() - frame().window().borderWidth(); m_button_grab_y = y - frame().y() - frame().window().borderWidth();
+ // If mouse clicked on the border, start window resize instead of move + // If mouse clicked on the border, start window resize instead of move
+ if (m_button_grab_x <= 0 || m_button_grab_y <= -6 || m_button_grab_x >= frame().window().width() + if (m_button_grab_x <= 0 m_button_grab_x >= frame().window().width()
+ || m_button_grab_y >= frame().window().height() ) { + || m_button_grab_y >= frame().window().height() ) {
+ ReferenceCorner dir = getResizeDirection(m_button_grab_x,m_button_grab_y,EDGEORCORNERRESIZE,frame().window().borderWidth(),frame().window().borderWidth()); + ReferenceCorner dir = getResizeDirection(m_button_grab_x,m_button_grab_y,EDGEORCORNERRESIZE,frame().window().borderWidth(),frame().window().borderWidth());
+ startResizing(m_button_grab_x, m_button_grab_y, dir); + startResizing(m_button_grab_x, m_button_grab_y, dir);