MCPcopy Create free account
hub / github.com/deskflow/deskflow / handleSwitchInDirectionEvent

Method handleSwitchInDirectionEvent

src/lib/server/Server.cpp:1312–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312void 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
1327void Server::handleToggleScreenEvent(const Event &)
1328{

Callers

nothing calls this directly

Calls 1

getDataMethod · 0.80

Tested by

no test coverage detected