tiling drag: fix cursor (wrong argument passed) (#5207)
Currently, the cursor is XCURSOR_CURSOR_TOP_RIGHT_CORNER (== BORDER_TOP), but the intended cursor was XCURSOR_CURSOR_MOVE. noticed this as part of https://github.com/i3/i3/issues/5198
This commit is contained in:
parent
a6c86fd794
commit
8128774386
1
release-notes/bugfixes/3-drag-cursor
Normal file
1
release-notes/bugfixes/3-drag-cursor
Normal file
@ -0,0 +1 @@
|
||||
fix tiling drag cursor: should be “move”, accidentally was “top right corner”
|
@ -283,7 +283,8 @@ void tiling_drag(Con *con, xcb_button_press_event_t *event) {
|
||||
xcb_window_t indicator = 0;
|
||||
const struct callback_params params = {&indicator, &target, &direction, &drop_type};
|
||||
|
||||
drag_result_t drag_result = drag_pointer(con, event, XCB_NONE, BORDER_TOP, XCURSOR_CURSOR_MOVE, drag_callback, ¶ms);
|
||||
const bool use_threshold = true;
|
||||
drag_result_t drag_result = drag_pointer(con, event, XCB_NONE, XCURSOR_CURSOR_MOVE, use_threshold, drag_callback, ¶ms);
|
||||
|
||||
/* Dragging is done. We don't need the indicator window any more. */
|
||||
xcb_destroy_window(conn, indicator);
|
||||
|
Loading…
x
Reference in New Issue
Block a user