lp:~3v1n0/bamf/lib-factory-xids-matching
- Get this branch:
- bzr branch lp:~3v1n0/bamf/lib-factory-xids-matching
Branch merges
- Michal Hruby (community): Approve
-
Diff: 892 lines (+410/-120)9 files modifiedlib/libbamf/Makefile.am (+1/-0)
lib/libbamf/bamf-application-private.h (+30/-0)
lib/libbamf/bamf-application.c (+71/-8)
lib/libbamf/bamf-factory.c (+157/-44)
lib/libbamf/bamf-factory.h (+17/-0)
lib/libbamf/bamf-matcher.c (+68/-38)
lib/libbamf/bamf-view-private.h (+2/-0)
lib/libbamf/bamf-view.c (+62/-29)
lib/libbamf/bamf-window.c (+2/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 480. By Marco Trevisan (Treviño)
-
BamfFactory: use BamfFactoryViewType instead of strings comparisons when possible.
This cleans the code and is for sure more safe.
- 477. By Marco Trevisan (Treviño)
-
BamfFactory: try to re-associate also windows by xids
This shouldn't be needed since the path is not changed in this case
but, let's be safe! - 476. By Marco Trevisan (Treviño)
-
BamfFactory: use also the childen xids to match views
When bamfdaemon has been killed and re-opened, the library should
try to reassociate the opened applications by desktop files, if that
check fails we should fallback on the children xids comparison:
if at least one child of a closed bamf application matches, then
we should re-associate it with the new path. - 475. By Marco Trevisan (Treviño)
-
BamfApplication: add protected get_cached_xids function, to retrieve the children xids
We keep in cache a list of xids that the application owns.
Available only to the library, not outside - 471. By Marco Trevisan (Treviño)
-
BamfMatcher: use factory's view_for_path_type function to get BamfView's
This should increase the performances when creating a new view, since
we don't need to create an unneeded view, fetch for its type, and finally
re-create the correctly typed view. Now we do all in one step if possible.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:bamf/0.4