Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Builtins][MediaWindow] Propagate window replace intention and set th… #18303

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

enen92
Copy link
Member

@enen92 enen92 commented Aug 19, 2020

…e start directory

Description

#17893 introduced a regression when using the ReplaceWindow builtin. The main issue lies in the fact that the new logic don't set the start directory if we came from the same window as we are just adding a new path to the window history. The problem is that, with replace window, the last window is in fact being popped from the window history by the window manager. This means that if we replace the same window with a different path chances are the window won't move to the new path.

To fix it, I'm propagating this replace/swapping window intention as a string parameter thus reinstating the previous ReplaceWindow behaviour while keeping the same ActivateWindow behaviour.

@ronie @roidy can you guys check if you can still reproduce the issue?

The previous PR should have not been backported as I said here (#17893 (comment)). As a result we now have the ReplaceWindow and a few skins broken in Leia. I'll add a backport label just in case we decide to make yet another final-final-reallyfinal Leia version (@DaveTBlake fyi).

Motivation and Context

Fix #18239

How Has This Been Tested?

Using a simple python script:

    xbmc.executebuiltin("ActivateWindow(Videos,videodb://movies/titles/,return)")
    xbmc.sleep(3000)
    xbmc.executebuiltin("ReplaceWindow(Videos,videodb://movies/genres/,return)")
    xbmc.sleep(5000)
    xbmc.executebuiltin("ReplaceWindow(Videos,videodb://movies/titles/,return)")

@enen92 enen92 added this to the Matrix 19.0-alpha 2 milestone Aug 19, 2020
@enen92 enen92 requested a review from ronie August 19, 2020 09:13
@enen92
Copy link
Member Author

enen92 commented Aug 19, 2020

jenkins build this please

Copy link
Member

@ronie ronie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and didn't spot any issues, lgtm.

Copy link
Contributor

@phunkyfish phunkyfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kodi 18.8 ReplaceWindow is broken
3 participants