summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2012-11-10 11:41:01 +0800
committerRichard Grenville <[email protected]>2012-11-10 11:41:01 +0800
commit473cb1f4ed86ec7337f40eea4bdd55298524d9e2 (patch)
treeaea1ec288258401eebc9bb8d0c8e9e82d2ebb8bf /compton.h
parentbbe376ad1b4029f64ac3a89b4b7cc90a99eeaf1f (diff)
downloadtdebase-473cb1f4ed86ec7337f40eea4bdd55298524d9e2.tar.gz
tdebase-473cb1f4ed86ec7337f40eea4bdd55298524d9e2.zip
Bug fix: Client window event mask not restored in map_win()
- Fix a bug that client window event masks are not restored in map_win(), causing further property changes to be ignored, for example. - Misc changes.
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/compton.h b/compton.h
index b66e77303..5d3ad2611 100644
--- a/compton.h
+++ b/compton.h
@@ -343,6 +343,7 @@ typedef struct _win {
struct _win *prev_trans;
} win;
+/// VSync modes.
typedef enum {
VSYNC_NONE,
VSYNC_DRM,
@@ -354,7 +355,7 @@ typedef int (*f_WaitVideoSync) (int, int, unsigned *);
typedef int (*f_GetVideoSync) (unsigned *);
#endif
-typedef struct _options {
+typedef struct {
// General
char *display;
/// Whether to try to detect WM windows and mark them as focused.
@@ -958,6 +959,10 @@ wid_bounding_shaped(Display *dpy, Window wid) {
return False;
}
+/**
+ * Determine if a window change affects reg_ignore and set
+ * reg_ignore_expire accordingly.
+ */
static inline void
update_reg_ignore_expire(const win *w) {
if (w->to_paint && WINDOW_SOLID == w->mode)