mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Revert "Revert "Fix popups""
This reverts commit 9aa258d33a.
Reverting the revert, so that popups can be fixed.
This commit is contained in:
parent
ea14ef4095
commit
8392eae40f
10 changed files with 197 additions and 55 deletions
|
|
@ -179,6 +179,14 @@ static void for_each_surface(struct sway_view *view,
|
|||
user_data);
|
||||
}
|
||||
|
||||
static void for_each_popup(struct sway_view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data) {
|
||||
if (xdg_shell_view_from_view(view) == NULL) {
|
||||
return;
|
||||
}
|
||||
wlr_xdg_surface_for_each_popup(view->wlr_xdg_surface, iterator, user_data);
|
||||
}
|
||||
|
||||
static void _close(struct sway_view *view) {
|
||||
if (xdg_shell_view_from_view(view) == NULL) {
|
||||
return;
|
||||
|
|
@ -219,6 +227,7 @@ static const struct sway_view_impl view_impl = {
|
|||
.set_fullscreen = set_fullscreen,
|
||||
.wants_floating = wants_floating,
|
||||
.for_each_surface = for_each_surface,
|
||||
.for_each_popup = for_each_popup,
|
||||
.close = _close,
|
||||
.close_popups = close_popups,
|
||||
.destroy = destroy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue