refactor: adjust layer and event handling in dismissal UI

This commit is contained in:
sankalp committed 2026-07-04 21:22:28 +05:45
1 parent 572cd0c089
commit 3e8dde6f35
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -8,10 +8,10 @@ from shared.window.popup_win import PopupWindow # noqa: E402
class DismissLayer(Window):
def __init__(self, on_dismiss, **kwargs):
self.event_box = EventBox()
self.event_box = EventBox(events=["button-press"])
super().__init__(
anchor="left right top bottom",
layer="overlay",
layer="top",
exclusivity="none",
keyboard_mode="none",
child=self.event_box,
+1 -1
View File
@@ -47,7 +47,7 @@ class ModusDropdown(AppletWindow):
self.child_box = CenterBox(start_children=[self.dropdown])
self.event_box = EventBox(
events=["enter-notify-event", "leave-notify-event"],
events=["enter-notify", "leave-notify"],
child=self.child_box,
all_visible=True,
)