*** 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 * 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); extern bool isLegacyFullscreen(void);
/* /*

View File

@ -168,7 +168,7 @@ static void ungrabPointer(void) {
void updatePointerGrab(void) { void updatePointerGrab(void) {
if (!created) if (!created)
return; return;
if (isLegacyFullscreen() || shouldGrab()) { if (isFullscreen() || shouldGrab()) {
grabPointer(); grabPointer();
} else { } else {
ungrabPointer(); 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) { bool isLegacyFullscreen(void) {
return current_window_mode == FULLSCREEN_LEGACY; return current_window_mode == FULLSCREEN_LEGACY;
} }