mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Lookup dragging key when in dragging mode
Fixes bug introduced in 22916e9
where dragging of floating windows was
messed up.
This commit is contained in:
parent
0aeee6963d
commit
82af08d8e9
|
@ -314,7 +314,7 @@ void pointer_mode_update(void) {
|
||||||
switch (pointer_state.mode) {
|
switch (pointer_state.mode) {
|
||||||
case M_FLOATING | M_DRAGGING:
|
case M_FLOATING | M_DRAGGING:
|
||||||
// Update position
|
// Update position
|
||||||
switch (config->resizing_key) {
|
switch (config->dragging_key) {
|
||||||
case M_LEFT_CLICK:
|
case M_LEFT_CLICK:
|
||||||
dx -= pointer_state.left.x;
|
dx -= pointer_state.left.x;
|
||||||
dy -= pointer_state.left.y;
|
dy -= pointer_state.left.y;
|
||||||
|
|
Loading…
Reference in a new issue