Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
libi3: Make visual_type extern
Browse files Browse the repository at this point in the history
See #3914
  • Loading branch information
orestisfl committed Feb 1, 2020
1 parent d11e862 commit e9f0113
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions i3-config-wizard/main.c
Expand Up @@ -68,6 +68,7 @@
} while (0)

#include "xcb.h"
xcb_visualtype_t *visual_type = NULL;
#include "libi3.h"

#define TEXT_PADDING logical_px(4)
Expand Down
5 changes: 3 additions & 2 deletions i3-input/main.c
Expand Up @@ -8,8 +8,6 @@
* to i3.
*
*/
#include "libi3.h"

#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
Expand All @@ -27,6 +25,9 @@
#include <xcb/xcb_event.h>
#include <xcb/xcb_keysyms.h>

xcb_visualtype_t *visual_type = NULL;
#include "libi3.h"

#include <X11/keysym.h>

#include "keysym2ucs.h"
Expand Down
5 changes: 3 additions & 2 deletions i3-nagbar/main.c
Expand Up @@ -8,8 +8,6 @@
* when the user has an error in their configuration file.
*
*/
#include "libi3.h"

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand All @@ -32,6 +30,9 @@
#include <xcb/randr.h>
#include <xcb/xcb_cursor.h>

xcb_visualtype_t *visual_type = NULL;
#include "libi3.h"

#define SN_API_NOT_YET_FROZEN 1
#include <libsn/sn-launchee.h>

Expand Down
2 changes: 1 addition & 1 deletion libi3/draw_util.c
Expand Up @@ -16,7 +16,7 @@
#include <cairo/cairo-xcb.h>

/* The default visual_type to use if none is specified when creating the surface. Must be defined globally. */
xcb_visualtype_t *visual_type;
extern xcb_visualtype_t *visual_type;

/* Forward declarations */
static void draw_util_set_source_color(surface_t *surface, color_t color);
Expand Down

0 comments on commit e9f0113

Please sign in to comment.