refactor: adjust layer and event handling in dismissal UI
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -8,10 +8,10 @@ from shared.window.popup_win import PopupWindow # noqa: E402
|
|||||||
|
|
||||||
class DismissLayer(Window):
|
class DismissLayer(Window):
|
||||||
def __init__(self, on_dismiss, **kwargs):
|
def __init__(self, on_dismiss, **kwargs):
|
||||||
self.event_box = EventBox()
|
self.event_box = EventBox(events=["button-press"])
|
||||||
super().__init__(
|
super().__init__(
|
||||||
anchor="left right top bottom",
|
anchor="left right top bottom",
|
||||||
layer="overlay",
|
layer="top",
|
||||||
exclusivity="none",
|
exclusivity="none",
|
||||||
keyboard_mode="none",
|
keyboard_mode="none",
|
||||||
child=self.event_box,
|
child=self.event_box,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class ModusDropdown(AppletWindow):
|
|||||||
self.child_box = CenterBox(start_children=[self.dropdown])
|
self.child_box = CenterBox(start_children=[self.dropdown])
|
||||||
|
|
||||||
self.event_box = EventBox(
|
self.event_box = EventBox(
|
||||||
events=["enter-notify-event", "leave-notify-event"],
|
events=["enter-notify", "leave-notify"],
|
||||||
child=self.child_box,
|
child=self.child_box,
|
||||||
all_visible=True,
|
all_visible=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user