1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Fix indentation

This commit is contained in:
Dave Davenport 2016-11-15 08:24:27 +01:00
parent c86a28ca70
commit 7e74d39a01
4 changed files with 25 additions and 25 deletions

View file

@ -10,7 +10,7 @@
/**
* Type of a mode.
* Access should be done via mode_* functions.
* Access should be done via mode_* functions.
*/
typedef struct rofi_mode Mode;

View file

@ -49,15 +49,15 @@
#include "rofi.h"
#include "view.h"
const char *const monitor_position_entries[] = {
const char *const monitor_position_entries[] = {
"on focused monitor",
"on focused window",
"at mouse pointer",
"on monitor with focused window",
"on monitor that has mouse pointer"
};
static int stored_argc = 0;
static char **stored_argv = NULL;
static int stored_argc = 0;
static char **stored_argv = NULL;
void cmd_set_arguments ( int argc, char **argv )
{

View file

@ -66,7 +66,7 @@
static int rofi_view_calculate_height ( RofiViewState *state );
/** Thread pool used for filtering */
GThreadPool *tpool = NULL;
GThreadPool *tpool = NULL;
/** Global pointer to the currently active RofiViewState */
RofiViewState *current_active_menu = NULL;
@ -103,15 +103,15 @@ struct
/** redraw idle time. */
guint repaint_source;
} CacheState = {
.main_window = XCB_WINDOW_NONE,
.fake_bg = NULL,
.edit_surf = NULL,
.edit_draw = NULL,
.fake_bgrel = FALSE,
.flags = MENU_NORMAL,
.views = G_QUEUE_INIT,
.idle_timeout = 0,
.count = 0L,
.main_window = XCB_WINDOW_NONE,
.fake_bg = NULL,
.edit_surf = NULL,
.edit_draw = NULL,
.fake_bgrel = FALSE,
.flags = MENU_NORMAL,
.views = G_QUEUE_INIT,
.idle_timeout = 0,
.count = 0L,
.repaint_source = 0,
};

View file

@ -57,7 +57,7 @@
/**
* Structure holding xcb objects needed to function.
*/
struct _xcb_stuff xcb_int = {
struct _xcb_stuff xcb_int = {
.connection = NULL,
.screen = NULL,
.screen_nbr = -1,
@ -65,20 +65,20 @@ struct _xcb_stuff xcb_int = {
.sncontext = NULL,
.monitors = NULL
};
xcb_stuff *xcb = &xcb_int;
xcb_stuff *xcb = &xcb_int;
/**
* Depth of root window.
*/
xcb_depth_t *depth = NULL;
xcb_visualtype_t *visual = NULL;
xcb_colormap_t map = XCB_COLORMAP_NONE;
xcb_depth_t *depth = NULL;
xcb_visualtype_t *visual = NULL;
xcb_colormap_t map = XCB_COLORMAP_NONE;
/**
* Visual of the root window.
*/
static xcb_visualtype_t *root_visual = NULL;
xcb_atom_t netatoms[NUM_NETATOMS];
const char *netatom_names[] = { EWMH_ATOMS ( ATOM_CHAR ) };
static xcb_visualtype_t *root_visual = NULL;
xcb_atom_t netatoms[NUM_NETATOMS];
const char *netatom_names[] = { EWMH_ATOMS ( ATOM_CHAR ) };
/**
* Holds for each supported modifier the possible modifier mask.
@ -89,8 +89,8 @@ static unsigned int x11_mod_masks[NUM_X11MOD];
cairo_surface_t *x11_helper_get_screenshot_surface ( void )
{
return cairo_xcb_surface_create ( xcb->connection,
xcb_stuff_get_root_window ( xcb ), root_visual,
xcb->screen->width_in_pixels, xcb->screen->height_in_pixels );
xcb_stuff_get_root_window ( xcb ), root_visual,
xcb->screen->width_in_pixels, xcb->screen->height_in_pixels );
}
static xcb_pixmap_t get_root_pixmap ( xcb_connection_t *c,
@ -941,7 +941,7 @@ void x11_disable_decoration ( xcb_window_t window )
{
// Flag used to indicate we are setting the decoration type.
const uint32_t MWM_HINTS_DECORATIONS = ( 1 << 1 );
// Motif property data structure
// Motif property data structure
struct MotifWMHints
{
uint32_t flags;