mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
Implement popup_during_fullscreen
This introduces a new view_impl function: is_transient_for. Similar to container_has_ancestor but works using the surface parents rather than the tree. This patch modifies view_is_visible, container_at and so on to allow transient views to function normally when they're in front of a fullscreen view.
This commit is contained in:
parent
6cb0e58c6d
commit
832ebc8966
16 changed files with 192 additions and 2 deletions
|
|
@ -256,6 +256,12 @@ enum edge_border_types {
|
|||
E_SMART_NO_GAPS, /**< hide both if one window and gaps to edge is zero */
|
||||
};
|
||||
|
||||
enum sway_popup_during_fullscreen {
|
||||
POPUP_SMART,
|
||||
POPUP_IGNORE,
|
||||
POPUP_LEAVE,
|
||||
};
|
||||
|
||||
enum command_context {
|
||||
CONTEXT_CONFIG = 1,
|
||||
CONTEXT_BINDING = 2,
|
||||
|
|
@ -355,6 +361,7 @@ struct sway_config {
|
|||
bool pango_markup;
|
||||
size_t urgent_timeout;
|
||||
enum sway_fowa focus_on_window_activation;
|
||||
enum sway_popup_during_fullscreen popup_during_fullscreen;
|
||||
|
||||
// Flags
|
||||
bool focus_follows_mouse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue