Replace X11 display number with a display string

As far as possible, use of the X11 display number is kept to
X11-specific routines. This is to make it easier to restructure
the code to add non-X11 display support.
This commit is contained in:
matt335672
2026-02-03 15:36:20 +00:00
parent d56408a891
commit c4727ad8f3
40 changed files with 726 additions and 527 deletions
+4 -4
View File
@@ -58,8 +58,8 @@ struct session_item
struct trans *sesexec_trans; // trans for sesexec process. Always valid.
pid_t sesexec_pid; // pid for sesexec process. Always valid
/**
* May be valid if known when the session is starting, otherwise -1 */
int display;
* May be valid if known when the session is starting, otherwise "" */
char display[MAX_DISPLAY_NAME_SIZE];
uid_t uid;
enum scp_session_type type;
unsigned short start_width;
@@ -125,10 +125,10 @@ session_list_new(void);
/**
* @brief Get all session displays
*
* Adds displays allocated to sessions to a set
* Adds X11 displays allocated to sessions to a set
*/
void
session_list_get_session_displays(struct set_int *alloc_displays);
session_list_get_session_x11_displays(struct set_int *alloc_displays);
/**
*