*** empty log message ***

This commit is contained in:
Elias Naur 2004-12-10 19:49:11 +00:00
parent c5ad32857d
commit 3e59db54ab
3 changed files with 10 additions and 1 deletions

View File

@ -122,6 +122,11 @@
/*
* Return true if we are in fullscreen mode
*/
extern bool isFullscreen(void);
/*
* Return true if we are in exclusive fullscreen mode
*/
extern bool isLegacyFullscreen(void);
/*

View File

@ -168,7 +168,7 @@ static void ungrabPointer(void) {
void updatePointerGrab(void) {
if (!created)
return;
if (isLegacyFullscreen() || shouldGrab()) {
if (isFullscreen() || shouldGrab()) {
grabPointer();
} else {
ungrabPointer();

View File

@ -223,6 +223,10 @@ static void acquireInput(void) {
}
}
bool isFullscreen(void) {
return current_window_mode == FULLSCREEN_LEGACY || current_window_mode == FULLSCREEN_NETWM;
}
bool isLegacyFullscreen(void) {
return current_window_mode == FULLSCREEN_LEGACY;
}