sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit e726b5c4458a88a3bd8880dca150f2de5c266a22
parent 0d741782c4451e0cde5ab0b4fa09470000d1ca57
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 17 Dec 2018 19:05:33 -0500

Merge pull request #3308 from RedSoxFan/fix-titlebar-click

Focus node before tiling drag if on titlebar
Diffstat:
Msway/input/cursor.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/sway/input/cursor.c b/sway/input/cursor.c @@ -945,6 +945,10 @@ void dispatch_cursor_button(struct sway_cursor *cursor, if (config->tiling_drag && (mod_pressed || on_titlebar) && state == WLR_BUTTON_PRESSED && !is_floating_or_child && cont && !cont->is_fullscreen) { + if (on_titlebar) { + node = seat_get_focus_inactive(seat, &cont->node); + seat_set_focus(seat, node); + } seat_pointer_notify_button(seat, time_msec, button, state); seat_begin_move_tiling(seat, cont, button); return;