Skip to content

Commit 0173408

Browse files
committed
x [skip ci]
1 parent 0c73f39 commit 0173408

File tree

5 files changed

+15
-19
lines changed

5 files changed

+15
-19
lines changed

sesman/chansrv/clipboard.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,7 @@ x-special/gnome-copied-files
185185
#define BMPINFOHEADER_LEN 40
186186

187187
extern Display *g_display; /* in xcommon.c */
188-
extern int g_x_socket; /* in xcommon.c */
189-
extern tbus g_x_wait_obj; /* in xcommon.c */
190188
extern Screen *g_screen; /* in xcommon.c */
191-
extern int g_screen_num; /* in xcommon.c */
192-
193189
int g_clip_up = 0;
194190

195191
static Atom g_clipboard_atom = 0; /* CLIPBOARD */

sesman/chansrv/xcommon.c

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,17 @@
3030
#include "rail.h"
3131
#include "xcommon.h"
3232

33-
extern int g_clip_up; /* in clipboard.c */
34-
35-
extern int g_rail_up; /* in rail.c */
36-
37-
Display *g_display = 0;
33+
static Display *g_display = 0;
3834
int g_x_socket = 0;
3935
tbus g_x_wait_obj = 0;
40-
Screen *g_screen = 0;
41-
int g_screen_num = 0;
42-
Window g_root_window = 0;
43-
Atom g_wm_delete_window_atom = 0;
44-
Atom g_wm_protocols_atom = 0;
45-
Atom g_utf8_string = 0;
46-
Atom g_net_wm_name = 0;
47-
Atom g_wm_state = 0;
36+
static Screen *g_screen = 0;
37+
static int g_screen_num = 0;
38+
static Window g_root_window = 0;
39+
static Atom g_wm_delete_window_atom = 0;
40+
static Atom g_wm_protocols_atom = 0;
41+
static Atom g_utf8_string = 0;
42+
static Atom g_net_wm_name = 0;
43+
static Atom g_wm_state = 0;
4844

4945
static x_server_fatal_cb_type x_server_fatal_handler = 0;
5046

sesman/chansrv/xcommon.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
typedef void (*x_server_fatal_cb_type)(void);
3030

31+
extern int g_x_socket;
32+
extern tbus g_x_wait_obj;
33+
extern int g_screen_num;
34+
3135
int
3236
xcommon_init(void);
3337
int

sesman/tools/xcon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <X11/Xlib.h>
3030
#include <sys/select.h>
3131

32-
Display *g_display = 0;
32+
static Display *g_display = 0;
3333
int g_x_socket = 0;
3434

3535
int main(int argc, char **argv)

xrdp_accel_assist/xrdp_accel_assist_x11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
/* X11 */
6161
Display *g_display = NULL;
62-
static int g_x_socket = 0;
62+
int g_x_socket = 0;
6363
int g_screen_num = 0;
6464
static Screen *g_screen = NULL;
6565
Window g_root_window = None;

0 commit comments

Comments
 (0)