File tree Expand file tree Collapse file tree 5 files changed +15
-19
lines changed
Expand file tree Collapse file tree 5 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,7 @@ x-special/gnome-copied-files
185185#define BMPINFOHEADER_LEN 40
186186
187187extern 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 */
190188extern Screen * g_screen ; /* in xcommon.c */
191- extern int g_screen_num ; /* in xcommon.c */
192-
193189int g_clip_up = 0 ;
194190
195191static Atom g_clipboard_atom = 0 ; /* CLIPBOARD */
Original file line number Diff line number Diff line change 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 ;
3834int g_x_socket = 0 ;
3935tbus 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
4945static x_server_fatal_cb_type x_server_fatal_handler = 0 ;
5046
Original file line number Diff line number Diff line change 2828
2929typedef 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+
3135int
3236xcommon_init (void );
3337int
Original file line number Diff line number Diff line change 2929#include <X11/Xlib.h>
3030#include <sys/select.h>
3131
32- Display * g_display = 0 ;
32+ static Display * g_display = 0 ;
3333int g_x_socket = 0 ;
3434
3535int main (int argc , char * * argv )
Original file line number Diff line number Diff line change 5959
6060/* X11 */
6161Display * g_display = NULL ;
62- static int g_x_socket = 0 ;
62+ int g_x_socket = 0 ;
6363int g_screen_num = 0 ;
6464static Screen * g_screen = NULL ;
6565Window g_root_window = None ;
You can’t perform that action at this time.
0 commit comments