diff --git a/docs/pages/todo/todo_bugs.md b/docs/pages/todo/todo_bugs.md index 302571299..e6a1fc21c 100644 --- a/docs/pages/todo/todo_bugs.md +++ b/docs/pages/todo/todo_bugs.md @@ -5,6 +5,11 @@ permalink: todo_bugs summary: Just a hidden scratchpad. --- +- strange glitch that doesnt allow moving mouse when button pressed on linux + - happens when changing tab/workspace, but mostly tab + - need to reinvoke clip cursor on activate likely + - somehow fixed when we press escape or even tilde (!!) so maybe it's enough to call set_cursor_clipping_impl again + - WebRTC crash on dedicated server disconnect (happened when browser was connecting though) [20:27:54] server disconnected client 0 diff --git a/src/augs/window_framework/window.cpp b/src/augs/window_framework/window.cpp index b827ce9b9..6600659eb 100644 --- a/src/augs/window_framework/window.cpp +++ b/src/augs/window_framework/window.cpp @@ -78,6 +78,16 @@ namespace augs { || ch.msg == message::click_activate ) { active = true; + +#if PLATFORM_LINUX + /* + Refresh to fix cursor misbehaving + after focusing the window back on my Arch i3. + */ + + set_cursor_clipping_impl(cursor_clipping); + set_cursor_visible_impl(cursor_visible); +#endif } if (ch.msg == message::deactivate) {