12 Feb
2024
12 Feb
'24
10:58 a.m.
Jinoh Kang (@iamahuman) commented about server/user.h:
unsigned int users; /* processes and threads using this desktop */ struct global_cursor cursor; /* global cursor information */ unsigned char keystate[256]; /* asynchronous key state */ + struct object *shared_mapping; /* desktop shared memory mapping */ + const desktop_shm_t *shared; /* desktop shared memory */
Maybe add extra comment to stop clueless people from removing the const? ```suggestion:-0+0 const desktop_shm_t *shared; /* desktop shared memory (const outside SHARED_WRITE_BEGIN/END) */ ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3103#note_60849