Skip to content

Commit

Permalink
Restore moving windows by dragging with the right button down.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Jun 11, 2024
1 parent dd04522 commit c1673a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/wmframe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ void YFrameWindow::handleClick(const XButtonEvent &up, int click) {
YPopupWindow::pfCanFlipHorizontal |
YPopupWindow::pfPopupMenu);
}
else if (up.button == Button1 && up.window != up.subwindow &&
else if (up.button == Button1 && up.subwindow &&
click == 2 && isResizable() && !isFullscreen()) {
YRect geo(geometry()), res(geo);
if (origW < 1 || origH < 1) {
Expand Down
4 changes: 2 additions & 2 deletions src/ywindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@ void YWindow::handleMotion(const XMotionEvent &motion) {
if (fClickDrag) {
handleDrag(fClickEvent, motion);
}
else if ((motion.state & xapp->ButtonMask) / Button1Mask
== fClickButton) {
else if (int(motion.state & xapp->ButtonMask) ==
Button1Mask << (fClickButton - Button1)) {
if (motion.time >= fClickTime + ClickMotionDelay ||
sqr(motion.x_root - fClickEvent.x_root) +
sqr(motion.y_root - fClickEvent.y_root) >=
Expand Down

0 comments on commit c1673a3

Please sign in to comment.