Fixing disappearing and out of place jumpy windows
This commit is contained in:
16
src/common.h
16
src/common.h
@@ -36,9 +36,9 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <ev.h>
|
||||
#include <pixman.h>
|
||||
#include <xcb/xproto.h>
|
||||
#include <xcb/render.h>
|
||||
#include <xcb/sync.h>
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#include "uthash_extra.h"
|
||||
#ifdef CONFIG_OPENGL
|
||||
@@ -55,11 +55,11 @@
|
||||
#include "backend/driver.h"
|
||||
#include "compiler.h"
|
||||
#include "config.h"
|
||||
#include "list.h"
|
||||
#include "region.h"
|
||||
#include "render.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "list.h"
|
||||
#include "render.h"
|
||||
#include "win_defs.h"
|
||||
#include "x.h"
|
||||
|
||||
@@ -254,11 +254,11 @@ typedef struct session {
|
||||
// Cached blur convolution kernels.
|
||||
struct x_convolution_kernel **blur_kerns_cache;
|
||||
/// If we should quit
|
||||
bool quit:1;
|
||||
bool quit : 1;
|
||||
/// Whether there are pending updates, like window creation, etc.
|
||||
/// TODO use separate flags for dfferent kinds of updates so we don't
|
||||
/// waste our time.
|
||||
bool pending_updates:1;
|
||||
bool pending_updates : 1;
|
||||
|
||||
// === Expose event related ===
|
||||
/// Pointer to an array of <code>XRectangle</code>-s of exposed region.
|
||||
@@ -534,8 +534,12 @@ static inline void wintype_arr_enable(bool arr[]) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get current system clock in milliseconds.
|
||||
*/
|
||||
int64_t get_time_ms(void);
|
||||
|
||||
/**
|
||||
* Get current system clock in microseconds * 40.
|
||||
*/
|
||||
int64_t get_time_40us(void);
|
||||
|
||||
Reference in New Issue
Block a user