*** empty log message ***
This commit is contained in:
parent
c5ad32857d
commit
3e59db54ab
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -168,7 +168,7 @@ static void ungrabPointer(void) {
|
|||
void updatePointerGrab(void) {
|
||||
if (!created)
|
||||
return;
|
||||
if (isLegacyFullscreen() || shouldGrab()) {
|
||||
if (isFullscreen() || shouldGrab()) {
|
||||
grabPointer();
|
||||
} else {
|
||||
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) {
|
||||
return current_window_mode == FULLSCREEN_LEGACY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue