mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
Fix pointer offset calculation on move action.
This commit is contained in:
parent
82e40ed7a7
commit
5804b95a71
1 changed files with 2 additions and 2 deletions
|
@ -7313,8 +7313,8 @@ move_win(struct ws_win *win, struct binding *bp, int opt)
|
|||
mne = (xcb_motion_notify_event_t *)evt;
|
||||
DNPRINTF(SWM_D_EVENT, "MOTION_NOTIFY: root: %#x\n",
|
||||
mne->root);
|
||||
X(win) = mne->root_x - qpr->win_x - border_width;
|
||||
Y(win) = mne->root_y - qpr->win_y - border_width;
|
||||
X(win) = mne->root_x - qpr->win_x;
|
||||
Y(win) = mne->root_y - qpr->win_y;
|
||||
|
||||
/* not free, don't sync more than 120 times / second */
|
||||
if ((mne->time - timestamp) > (1000 / 120) ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue