globalconf: move client_need_stack_refresh out

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-14 15:18:58 +02:00
parent 6b426b1da1
commit 6d012144d5
3 changed files with 5 additions and 5 deletions

View File

@ -531,9 +531,10 @@ client_stack_refresh()
uint32_t config_win_vals[2]; uint32_t config_win_vals[2];
layer_t layer; layer_t layer;
if (!globalconf.client_need_stack_refresh) if (!client_need_stack_refresh)
return; return;
globalconf.client_need_stack_refresh = false;
client_need_stack_refresh = false;
config_win_vals[0] = XCB_NONE; config_win_vals[0] = XCB_NONE;
config_win_vals[1] = XCB_STACK_MODE_ABOVE; config_win_vals[1] = XCB_STACK_MODE_ABOVE;

View File

@ -206,10 +206,11 @@ void client_ignore_enterleave_events(void);
void client_restore_enterleave_events(void); void client_restore_enterleave_events(void);
void client_class_setup(lua_State *); void client_class_setup(lua_State *);
bool client_need_stack_refresh;
static inline void static inline void
client_stack(void) client_stack(void)
{ {
globalconf.client_need_stack_refresh = true; client_need_stack_refresh = true;
} }
/** Put client on top of the stack. /** Put client on top of the stack.

View File

@ -98,8 +98,6 @@ typedef struct
int mousegrabber; int mousegrabber;
/** Focused screen */ /** Focused screen */
screen_t *screen_focus; screen_t *screen_focus;
/** Need to call client_stack_refresh() */
bool client_need_stack_refresh;
/** Wiboxes */ /** Wiboxes */
wibox_array_t wiboxes; wibox_array_t wiboxes;
/** The startup notification display struct */ /** The startup notification display struct */