-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathWindowLevel.h
executable file
·24 lines (21 loc) · 949 Bytes
/
WindowLevel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* WindowLevel.h
* ColorOracle
*
* Created by Bernhard Jenny on 16.03.06.
* Copyright 2006 Institute of Cartography, ETH Zurich. All rights reserved.
*
*/
#include <Carbon/Carbon.h>
// Defines the window level for windows covering the dock, but not the menu.
// NSFloatingWindowLevel and NSModalPanelWindowLevel do not cover the
// dock, which is not what we want.
// We have to use window level kCGDockWindowLevel (=20) to cover the dock.
// The dock should be covered, otherwise the user can resize the dock
// while the simulation window is visible. A gost-dock and the resized
// dock would be visible in this case.
// NSMainMenuWindowLevel (=24) is reserved for the application’s main menu.
// NSStatusWindowLevel (=25) also covers the menu, which is not what we want.
// So use 23: this covers the dock plus the names that appear when the mouse
// hovers over icons in the dock (which seem to use 22)
#define WINDOWLEVEL 23