summaryrefslogtreecommitdiff
path: root/src/privatescreen.h
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-03 13:32:57 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-03 13:32:57 +0200
commit2ff50b5b0b66e087090553954bbb43fad7f614e7 (patch)
tree6de411ba33fe8132fb6a127dd25ebd2d3b93a9d4 /src/privatescreen.h
parentcf3774147de8137b6698ae9d35c8ad579bd97b87 (diff)
downloadunity-window-decorator-2ff50b5b0b66e087090553954bbb43fad7f614e7.tar.gz
unity-window-decorator-2ff50b5b0b66e087090553954bbb43fad7f614e7.tar.bz2
Improve focus stealing prevention.
- Allow window focus if currently no window or only the desktop window is focussed. - Rename mode "High" to "Normal" and introduce "High" mode that denies focus attempts of windows not belonging to the active application. - Allow focus attempts of windows of the same application in Low, Normal, High modes.
Diffstat (limited to 'src/privatescreen.h')
-rw-r--r--src/privatescreen.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/privatescreen.h b/src/privatescreen.h
index 114460b..33f860a 100644
--- a/src/privatescreen.h
+++ b/src/privatescreen.h
@@ -126,8 +126,9 @@ typedef struct _CompDelayedEdgeSettings
#define FOCUS_PREVENTION_LEVEL_NONE 0
#define FOCUS_PREVENTION_LEVEL_LOW 1
-#define FOCUS_PREVENTION_LEVEL_HIGH 2
-#define FOCUS_PREVENTION_LEVEL_VERYHIGH 3
+#define FOCUS_PREVENTION_LEVEL_NORMAL 2
+#define FOCUS_PREVENTION_LEVEL_HIGH 3
+#define FOCUS_PREVENTION_LEVEL_VERYHIGH 4
#define FOCUS_PREVENTION_LEVEL_LAST FOCUS_PREVENTION_LEVEL_VERYHIGH
#define SCREEN_EDGE_LEFT 0