*** empty log message ***
This commit is contained in:
parent
c5ad32857d
commit
3e59db54ab
|
@ -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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue