Merge lp:~ksamak/compiz/showmouse_autostart_option into lp:compiz
| Status: | Merged |
|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2017-05-09 |
| Approved revision: | 4110 |
| Merged at revision: | 4120 |
| Proposed branch: | lp:~ksamak/compiz/showmouse_autostart_option |
| Merge into: | lp:compiz |
| Diff against target: |
60 lines (+21/-0) 3 files modified
plugins/showmouse/showmouse.xml.in (+5/-0) plugins/showmouse/src/showmouse.cpp (+13/-0) plugins/showmouse/src/showmouse.h (+3/-0) |
| To merge this branch: | bzr merge lp:~ksamak/compiz/showmouse_autostart_option |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | 2017-03-02 | Approve on 2017-05-09 | |
| ksamak (community) | Approve on 2017-04-20 | ||
| Andrea Azzarone | Needs Fixing on 2017-03-29 | ||
| Sam Spilsbury | 2017-03-02 | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2017-01-26.
Commit Message
showmouse: added autostart option
Description of the Change
added startup option to showmouse plugin
| ksamak (ksamak) wrote : | # |
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
I'm just wondering, as Sam asked, why you need a Timer here...
| ksamak (ksamak) wrote : | # |
> I'm just wondering, as Sam asked, why you need a Timer here...
pasting:
I tried optionGetActiva
The optionGetActiva
| Sam Spilsbury (smspillaz) wrote : | # |
> > I'm just wondering, as Sam asked, why you need a Timer here...
>
> pasting:
> I tried optionGetActiva
> aren't initialized yet if the object isn't constructed.
> The optionGetActiva
> placed in constructor, or in function called by constructor. I don't know of
> any other mean to bypass this except a timer.
I had a look around and you're right - it looks like the compizconfig plugin itself applies settings on an idle timer at startup. I'm not sure why that is exactly, but we'll have to work around it.
One option is to use timeout handler like this. I suppose another option is that if the setting will remain off by default, you could use optionGetActiva
I also note that the way the keybindings are done here are such that holding down the keys initiates the effect whereas releasing them terminates it. I would imagine such behaviour would have to be inverted in the "on-by-default" case.
| Andrea Azzarone (azzar1) wrote : | # |
Yes remove the timer please. Use the same "workaround" you wrote for the neg plugin.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Any update here?


hi,
fixed indentation, and commented on timer use.
thanks for your time.