aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2022-10-10 08:22:55 -0400
committerMichael Stapelberg <michael@stapelberg.de>2022-10-24 21:12:30 +0200
commit9d6a8735eb1996cd8763f727e2a8a2ce8e60a8aa (patch)
treefc29a24f2b5c94424b006ebeaf26757c303b4083
parentdecc37eba12baf3e8f92a4e56bd04e35a8544a96 (diff)
downloadi3-9d6a8735eb1996cd8763f727e2a8a2ce8e60a8aa.tar.gz
i3-9d6a8735eb1996cd8763f727e2a8a2ce8e60a8aa.zip
Raise floating windows when their border is clicked (#5196)
This logic already existed for `floating_drag_window`, but we need it for `floating_resize_window` too. Fixes #5195.
-rw-r--r--src/floating.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/floating.c b/src/floating.c
index b825ac58..992ca23c 100644
--- a/src/floating.c
+++ b/src/floating.c
@@ -699,6 +699,10 @@ void floating_resize_window(Con *con, const bool proportional,
const xcb_button_press_event_t *event) {
DLOG("floating_resize_window\n");
+ /* Push changes before resizing, so that the window gets raised now and not
+ * after the user releases the mouse button */
+ tree_render();
+
/* corner saves the nearest corner to the original click. It contains
* a bitmask of the nearest borders (BORDER_LEFT, BORDER_RIGHT, …) */
border_t corner = 0;