Merge lp://qastaging/~ksamak/compiz/ezoom_focus_tracking into lp://qastaging/compiz/0.9.13

Proposed by ksamak
Status: Superseded
Proposed branch: lp://qastaging/~ksamak/compiz/ezoom_focus_tracking
Merge into: lp://qastaging/compiz/0.9.13
Diff against target: 1627 lines (+1271/-45)
16 files modified
debian/compiz-dev.install (+1/-0)
debian/compiz-plugins-default.install (+2/-0)
debian/control (+1/-0)
plugins/ezoom/CMakeLists.txt (+1/-1)
plugins/ezoom/ezoom.xml.in (+35/-8)
plugins/ezoom/src/ezoom.cpp (+129/-34)
plugins/ezoom/src/ezoom.h (+20/-2)
plugins/focuspoll/CMakeLists.txt (+9/-0)
plugins/focuspoll/compiz-focuspoll.pc.in (+12/-0)
plugins/focuspoll/focuspoll.xml.in (+34/-0)
plugins/focuspoll/include/accessibilitywatcher/accessibilitywatcher.h (+87/-0)
plugins/focuspoll/include/accessibilitywatcher/focusinfo.h (+110/-0)
plugins/focuspoll/include/focuspoll/focuspoll.h (+50/-0)
plugins/focuspoll/src/accessibilitywatcher.cpp (+490/-0)
plugins/focuspoll/src/focuspoll.cpp (+214/-0)
plugins/focuspoll/src/private.h (+76/-0)
To merge this branch: bzr merge lp://qastaging/~ksamak/compiz/ezoom_focus_tracking
Reviewer Review Type Date Requested Status
ksamak (community) Needs Fixing
Sam Spilsbury code, style Needs Fixing
Andrea Azzarone Needs Fixing
Marco Trevisan (TreviƱo) Pending
Review via email: mp+315008@code.qastaging.launchpad.net

This proposal has been superseded by a proposal from 2017-02-24.

Description of the change

ezoom: added focus tracking based on at-spi a11y events.

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Can you please link a bug to the MP?

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Ok this is the first part of the review. I'll continue later.

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Thanks for all the hard work in implementing this. There's a fair bit of work to be done before this can be integrated. In particular, this cannot be merged whilst it opens a separate display connection - that is a recipe for deadlocks.

review: Needs Fixing (code, style)
Revision history for this message
Sam Spilsbury (smspillaz) wrote :
Revision history for this message
ksamak (ksamak) wrote :

well, this plugin would indeed have been helpful.

Sam Spilsbury (smspillaz) wrote 18 hours ago:
I like the fact that this is a separate library, but this absolutely doesn't belong in the mousepoll plugin. The mouse poll plugin is supposed to do one thing and one thing only - update the position of the mouse every N milliseconds. Move all this into either a separate plugin or library.

I originally made a copy of the mousePoll plugin (called focusPoll), but for some unknown reason it... deadlocked, or froze at runtime. I couldn't find why, and no one had time to look at it, so I merged both logics in mousepoll, cause then, with sensibly the same methods, it didn't freeze.

I agree an additional plugin would serve better, so I'd appreciate some input on that problem.
there's a readyish branch on http://git.hypra.fr/hypra/compiz.git named focuspoll. Maybe you would have some insights as to what is blocking here. It might be, as you pointed, the call to open the display.
question: how would you circumvent the problem of the call to XOpenDisplay, if the whole a11ywatcher was a library? Is there a better way to get the screen info? that is without causing all those problems.

I will meditate on these ideas, and weight the pros and cons of the different solutions, and i'll then continue the work.
thank you for all the advice and corrections, including those pending below. I am available to discuss these matters further, or if you have more insight.

review: Needs Fixing
4107. By ksamak <ksamak@ksalaptop>

fix first half of code review

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

> Maybe you would have some insights as to what is blocking here. It
> might be, as you pointed, the call to open the display.
> question: how would you circumvent the problem of the call to XOpenDisplay, if
> the whole a11ywatcher was a library? Is there a better way to get the screen
> info? that is without causing all those problems.

Yes, there's a global variable called 'screen' and you can access the current connection from there (screen->dpy()). If your library needs a reference to it, I'd suggest having the caller pass it in.

4108. By ksamak <ksamak@ksalaptop>

coding style modifs, cleanup

4109. By ksamak <ksamak@ksalaptop>

merge commit

4110. By ksamak <ksamak@ksalaptop>

cleanup

4111. By ksamak <ksamak@ksalaptop>

cleanup

4112. By ksamak <ksamak@ksalaptop>

minor de-renaming

4113. By ksamak <ksamak@ksalaptop>

coding style edit

Revision history for this message
ksamak (ksamak) wrote :

I've answered some of the following, and will superseed the merge request with the new version from the branch.
i thank you for your time, advice, and corrections.

4114. By ksamak <ksamak@ksalaptop>

solved laggy mouse bug, code cleanup

4115. By ksamak <ksamak@ksalaptop>

corrected segfault, minors code modifs

4116. By ksamak <ksamak@ksalaptop>

minors code modifs

4117. By ksamak <ksamak@ksalaptop>

minors code modifs

4118. By ksamak <ksamak@ksalaptop>

coding style modifs

4119. By ksamak <ksamak@ksalaptop>

coding style modifs

4120. By ksamak <ksamak@ksalaptop>

coding style modifs. changed if format on 3v1n0's request

4121. By ksamak <ksamak@ksalaptop>

modifications of code according to azzar's request

4122. By ksamak <ksamak@ksalaptop>

added precedence relation to start showmouse before ezoom

4123. By ksamak <ksamak@ksalaptop>

coding style

4124. By ksamak <ksamak@ksalaptop>

added rebranding of icedove to thunderbird support

Unmerged revisions

4124. By ksamak <ksamak@ksalaptop>

added rebranding of icedove to thunderbird support

4123. By ksamak <ksamak@ksalaptop>

coding style

4122. By ksamak <ksamak@ksalaptop>

added precedence relation to start showmouse before ezoom

4121. By ksamak <ksamak@ksalaptop>

modifications of code according to azzar's request

4120. By ksamak <ksamak@ksalaptop>

coding style modifs. changed if format on 3v1n0's request

4119. By ksamak <ksamak@ksalaptop>

coding style modifs

4118. By ksamak <ksamak@ksalaptop>

coding style modifs

4117. By ksamak <ksamak@ksalaptop>

minors code modifs

4116. By ksamak <ksamak@ksalaptop>

minors code modifs

4115. By ksamak <ksamak@ksalaptop>

corrected segfault, minors code modifs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches