summaryrefslogtreecommitdiff
path: root/hw/xquartz/quartz.h
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-08-03 12:51:51 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-09-28 10:09:11 -0700
commitc45bea0c044ad37bedb42209f7e6ea8b587999f0 (patch)
treea0900033fda1eff166d70d7932cf6d57062f9a13 /hw/xquartz/quartz.h
parent229323a19b06f80d9b03f487e598b933b9b31d87 (diff)
XQuartz: RandR: Refactor legacy mode-switching to be better integrated with RandR
Adds three new functions void QuartzRandRSetFakeRootless (void); void QuartzRandRSetFakeFullscreen (void); void QuartzRandRToggleFullscreen (void); The first two are identical to requesting the fake modes from a RandR client The third responds to cmd-alt-a to leave fullscreen or RandR. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'hw/xquartz/quartz.h')
-rw-r--r--hw/xquartz/quartz.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/hw/xquartz/quartz.h b/hw/xquartz/quartz.h
index a0a17cb36..7efb7e09b 100644
--- a/hw/xquartz/quartz.h
+++ b/hw/xquartz/quartz.h
@@ -115,12 +115,8 @@ typedef struct _QuartzModeProcs {
extern QuartzModeProcsPtr quartzProcs;
-extern Bool XQuartzHasRoot; /* TODO: These two booleans are very similar and */
-extern Bool XQuartzServerVisible; /* the code that uses them needs to be refactored
- * XQuartzHasRoot is essentially the "saved" XQuartzServerVisible
- * value from when the server was not in rootless mode.
- */
-
+extern Bool XQuartzFullscreenVisible; /* Are the windows visible (predicated on !rootless) */
+extern Bool XQuartzServerVisible; /* Is the server visible ... TODO: Refactor to "active" */
extern Bool XQuartzEnableKeyEquivalents;
extern Bool XQuartzRootlessDefault; /* Is our default mode rootless? */
extern Bool XQuartzIsRootless; /* Is our current mode rootless (or FS)? */
@@ -144,7 +140,7 @@ void QuartzSetRootClip(BOOL enable);
void QuartzSpaceChanged(uint32_t space_id);
void QuartzSetRootless(Bool state);
-void QuartzSetFullscreen(Bool state);
+void QuartzShowFullscreen(Bool state);
int server_main(int argc, char **argv, char **envp);
#endif