Implement smart popup_during_fullscreen mode
With this commit, the default behavior is to display popups while there is a fullscreen application only if the popup belongs to that application (as determined by the WM_TRANSIENT_FOR hint which applications have to set properly). fixes #663
This commit is contained in:
@ -191,8 +191,15 @@ struct Config {
|
||||
|
||||
/** What should happen when a new popup is opened during fullscreen mode */
|
||||
enum {
|
||||
PDF_LEAVE_FULLSCREEN = 0,
|
||||
PDF_IGNORE = 1
|
||||
/* display (and focus) the popup when it belongs to the fullscreen
|
||||
* window only. */
|
||||
PDF_SMART = 0,
|
||||
|
||||
/* leave fullscreen mode unconditionally */
|
||||
PDF_LEAVE_FULLSCREEN = 1,
|
||||
|
||||
/* just ignore the popup, that is, don’t map it */
|
||||
PDF_IGNORE = 2,
|
||||
} popup_during_fullscreen;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user