mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
Merge pull request #2173 from emersion/fix-floating-no-frame-event
Fix floating views not receiving frame events
This commit is contained in:
commit
53c4467573
|
@ -948,7 +948,7 @@ bool view_is_visible(struct sway_view *view) {
|
||||||
// Check view isn't in a tabbed or stacked container on an inactive tab
|
// Check view isn't in a tabbed or stacked container on an inactive tab
|
||||||
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
||||||
struct sway_container *container = view->swayc;
|
struct sway_container *container = view->swayc;
|
||||||
while (container->type != C_WORKSPACE) {
|
while (container->type != C_WORKSPACE && container->layout != L_FLOATING) {
|
||||||
if (container->parent->layout == L_TABBED ||
|
if (container->parent->layout == L_TABBED ||
|
||||||
container->parent->layout == L_STACKED) {
|
container->parent->layout == L_STACKED) {
|
||||||
if (seat_get_active_child(seat, container->parent) != container) {
|
if (seat_get_active_child(seat, container->parent) != container) {
|
||||||
|
|
Loading…
Reference in a new issue