Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ClientInfo Class Reference

Client screen information structure. More...

#include <ProtocolTypes.h>

Public Attributes

int32_t m_x
 Screen position coordinates.
int32_t m_y
 Top edge Y coordinate.
int32_t m_w
 Screen dimensions.
int32_t m_h
 Screen height in pixels.
int32_t obsolete1
 Obsolete jump zone size.
int32_t m_mx
 Current mouse position.
int32_t m_my
 Mouse Y position.

Detailed Description

Client screen information structure.

Contains comprehensive information about a secondary screen, including dimensions, position, and current mouse location. This data is sent via kMsgDInfo messages.

Usage:

  • Sent by client in response to kMsgQInfo
  • Sent when screen resolution changes
  • Used by server for screen layout calculations

Coordinate System:

  • Origin (0,0) is typically top-left corner
  • Coordinates can be negative for multi-monitor setups
  • All values are in pixels
See also
kMsgDInfo, kMsgQInfo
Since
Protocol version 1.0

Member Data Documentation

◆ m_h

int32_t ClientInfo::m_h

Screen height in pixels.

◆ m_mx

int32_t ClientInfo::m_mx

Current mouse position.

The current location of the mouse cursor on this screen. Coordinates are relative to the screen's coordinate system (m_x, m_y represent the origin).

Usage:

  • Updated when mouse moves on this screen
  • Used for cursor synchronization between screens
  • Helps with smooth transitions during screen switching
Since
Protocol version 1.0 Mouse X position

◆ m_my

int32_t ClientInfo::m_my

Mouse Y position.

◆ m_w

int32_t ClientInfo::m_w

Screen dimensions.

The size of the screen in pixels. These values represent the usable screen area for mouse movement and window placement.

Since
Protocol version 1.0 Screen width in pixels

◆ m_x

int32_t ClientInfo::m_x

Screen position coordinates.

The position of the upper-left corner of the screen in the virtual desktop coordinate system. This is typically (0,0) for single-monitor setups, but can be different in multi-monitor configurations.

Since
Protocol version 1.0 Left edge X coordinate

◆ m_y

int32_t ClientInfo::m_y

Top edge Y coordinate.

◆ obsolete1

int32_t ClientInfo::obsolete1

Obsolete jump zone size.

Deprecated
This field is no longer used and should be set to 0
Since
Protocol version 1.0

The documentation for this class was generated from the following file: