| 1310 | } |
| 1311 | |
| 1312 | void Server::handleSwitchInDirectionEvent(const Event &event) |
| 1313 | { |
| 1314 | const auto *info = static_cast<SwitchInDirectionInfo *>(event.getData()); |
| 1315 | |
| 1316 | // jump to screen in chosen direction from center of this screen |
| 1317 | int32_t x = m_x; |
| 1318 | int32_t y = m_y; |
| 1319 | BaseClientProxy *newScreen = getNeighbor(m_active, info->m_direction, x, y); |
| 1320 | if (newScreen == nullptr) { |
| 1321 | LOG_DEBUG1("no neighbor %s", Config::dirName(info->m_direction)); |
| 1322 | } else { |
| 1323 | jumpToScreen(newScreen); |
| 1324 | } |
| 1325 | } |
| 1326 | |
| 1327 | void Server::handleToggleScreenEvent(const Event &) |
| 1328 | { |