Disable unredirection when a modal operation is active
When the shell takes control of the screen (for example to show a modal dialog or to lock the screen), it must reestablish itself on top of the stack, and in particular restore any unredirected window so that it is composited below the Shell UI. Reviewed-By: drago01 in IRC.
This commit is contained in:
parent
0804cefbee
commit
8ebbba6eb8
@ -671,6 +671,7 @@ function pushModal(actor, timestamp, options) {
|
|||||||
log('pushModal: invocation of begin_modal failed');
|
log('pushModal: invocation of begin_modal failed');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Meta.disable_unredirect_for_screen(global.screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
global.set_stage_input_mode(Shell.StageInputMode.FULLSCREEN);
|
global.set_stage_input_mode(Shell.StageInputMode.FULLSCREEN);
|
||||||
@ -751,6 +752,7 @@ function popModal(actor, timestamp) {
|
|||||||
|
|
||||||
global.end_modal(timestamp);
|
global.end_modal(timestamp);
|
||||||
global.set_stage_input_mode(Shell.StageInputMode.NORMAL);
|
global.set_stage_input_mode(Shell.StageInputMode.NORMAL);
|
||||||
|
Meta.enable_unredirect_for_screen(global.screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createLookingGlass() {
|
function createLookingGlass() {
|
||||||
|
Loading…
Reference in New Issue
Block a user