#6925: Switching workspaces via shortcut kidnaps window ---------------------------------+------------------------------ Reporter: humdinger | Owner: axeld Type: bug | Status: assigned Priority: normal | Milestone: R1 Component: Servers/app_server | Version: R1/Development Resolution: | Keywords: Blocked By: | Has a Patch: 0 Platform: All | Blocking: ---------------------------------+------------------------------ Changes (by bonefish): * owner: bonefish => axeld * status: in-progress => assigned Comment: Assigning to the one who might actually know what [https://dev.haiku- os.org/browser/haiku/trunk/src/servers/app/Desktop.cpp?rev=39653#L3349 Desktop::_SetWorkspace()] is supposed to do. For some reason it is always moving `fMouseEventWindow` to the target workspace (if there is one). At least the calls from the `AS_ACTIVATE_WORKSPACE` message handlers expect the `moveFocusWindow` parameter to indicate that, if `false`, no window is moved, and otherwise (supposedly) the keyboard focus window. That aside, the protocol for the `AS_ACTIVATE_WORKSPACE` message is insufficient anyway, since by the time the message is handled in the app server it is no longer clear which window was requesting the operation -- using the focus window is working only in most cases. -- Ticket URL: <http://dev.haiku-os.org/ticket/6925#comment:3> Haiku <http://dev.haiku-os.org> Haiku - the operating system.