Skip to content

Commit

Permalink
Prevent a widget from being grabbed if it's part of a screen
Browse files Browse the repository at this point in the history
that is being hidden.
  • Loading branch information
renpytom committed Jan 11, 2013
1 parent 259ef69 commit 3d4def2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion renpy/display/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def callback(f, n):

grab = new_grab
new_grab = None


# This changes the focus to be the widget contained inside the new
# focus object.
Expand Down
2 changes: 1 addition & 1 deletion renpy/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def __call__(self, *args, **kwargs):
if w is not None:
keyword["replaces"] = w

if renpy.display.focus.grab is w:
if (renpy.display.focus.grab is w) and (not screen.hiding):
grab = True


Expand Down

0 comments on commit 3d4def2

Please sign in to comment.