/srv/irclogs.ubuntu.com/2015/01/05/#ubuntu-mir.txt

=== duflu_ is now known as duflu
=== chihchun_afk is now known as chihchun
RAOFHm.06:33
RAOFIt occurs to me that what I really want is mir::observing_ptr.06:33
racarr_ALL ABOARD THE MIR TRAIN06:41
racarr_DEPARTURE SOON06:41
racarr_*whistle blowing*06:41
racarr_Happy new years everyone :) See you all tomorrow.06:42
mlankhorstMorning and happy newyear07:54
mlankhorstRAOF: don't we all want that? :D07:54
=== chihchun is now known as chihchun_afk
=== tsdgeos_ is now known as tsdgeos
kdubgood morning13:04
greyback_alan_g: hello! Happy New Year to you13:43
greyback_quick question, the new mir Server api doesn't have a getter for the_placement_strategy - omission or intentional?13:44
=== tedg is now known as ted
alan_ggreyback_: Healthy New Year!14:03
kgunnmornin' & happy new year to all14:03
greyback_o/14:04
alan_gWe've exposed the stuff that is in use14:04
alan_gkdub: kgunn : Healthy New Year!14:04
kdubalan_g, thanks14:05
greyback_alan_g: https://bugs.launchpad.net/mir/+bug/1407687 - I'd like it re-instated as I've a qtmir patch to use it. Far from urgent tho14:11
ubot5Launchpad bug 1407687 in Mir "request: mir::Server provide the_placement_strategy getter" [Undecided,New]14:11
kgunncamako: seems like we should probably cherry pick this into stable14:25
kgunnhttps://code.launchpad.net/~vanvugt/mir/fix-1401488/+merge/24544314:25
* camako looks14:26
kgunn...lemme know what ya think14:26
kgunnshowing up here also14:26
kgunnhttps://bugs.launchpad.net/ubuntu/+source/unity8/+bug/140568714:26
ubot5Launchpad bug 1405687 in unity8 (Ubuntu) "unity8 crashes while using webbrowser-app" [Undecided,Incomplete]14:26
kgunn...with people confirming14:26
camakokgunn, yeah I think so14:27
* kdub wonders why we're wrapping the binaries14:27
camakokgunn, we'll be making a release though.. will start it today..14:28
kgunncool14:28
alan_gkdub: wrapping is an [in]elegant way to locate the platforms directory14:36
kdubyeah... guess its too late to object14:40
alan_gIf I (or duflu) had had a better idea then we would have objected14:43
kdubyeah, something to improve on later14:47
racarr_Good morning15:17
kdubmorning racarr_15:17
camakomorning15:19
racarr_hey :) Happy new years guys15:20
camakohappy new year to you too :-)15:21
attente_hello, is mir supposed to generate hover-exit motion events when the mouse cursor leaves a surface?15:29
=== alan_g is now known as alan_g|tea
racarr_sort of yes15:33
racarr_as it stands cursor stuff doesnt work very well espescially under unity815:33
racarr_qtmir will drop the hover exit event afairc (it would be hard for it to know what to do with it currently atm)15:34
greyback_qtmir is missing many useful mouse events yet15:38
greyback_so yeah, is on the list15:38
=== alan_g|tea is now known as alan_g
kgunnracarr_: happy new year15:40
alan_gcamako: racarr_ Healthy New Year!15:41
racarr_MirPointerEvent coming soon :)15:48
racarr_PointerInputEvent rather15:48
racarr_maybe this is a good time to inbox 016:14
racarr_BOOM16:15
kgunngood luck16:15
kgunn....you'll likely get stuck on the riveting cla email16:16
alan_ggreyback_: I'm curious: how is the_placement_strategy() useful outside of Mir? Is it a workaround for a better API?16:21
greyback_alan_g: I want to push the placement decision into qml. I do this by making the place() call emit a synchroneous signal, that qml can catch and make the decision16:24
greyback_alan_g: https://code.launchpad.net/~gerboland/qtmir/initialSurfaceGeometry/+merge/231725 is how I'm using it16:25
alan_ggreyback_: OK but that just needs override (which is supported).16:26
alan_gI'll take a look16:26
greyback_alan_g: yeah, my workaround is just to save a copy of the shared pointer to the PlacementStrategy16:26
greyback_...in the override16:26
alan_gI think it is similar to my saving the WindowManager in https://code.launchpad.net/~alan-griffiths/mir/tiling-window-mamagement/+merge/245228 (but I want the WindowManager, not the PlacementStrategy interface16:28
greyback_alan_g: yes indeed. I've always let Mir create the objects and then relied on getters for them (not doing this was buggy with the old api). Perhaps I should relax that now16:37
alan_ggreyback_: it seems you actually want a MirPlacementStrategy* (not a ms::MirPlacementStrategy). So, rather than an accessor in Mir and a downcast (BTW wouldn't dynamic_cast be safer?), why not keep a weak_ptr<MirPlacementStrategy>? That would automatically give you your nullptr too.16:39
greyback_alan_g: fair point, and yes fair point16:40
alan_gCan I mark lp:1407687 invalid?16:41
greyback_alan_g: just an FYI on why I'm implementing ms::MirPlacementStrategy - I received complaints from some clients where the surface size returned by the PlacementStrategy would be changed later when the surface is added to the scene. I.e. the surface would get a resize event shortly after creation. Some clients don't like that16:42
alan_gthat seems sensible16:42
alan_gAnd what ms::PlacementStrategy is for16:43
greyback_alan_g: you can. But it does open up a slight API inconsistency in mir::Server - as many overrides do have accessor methods, and only a few do not16:43
* greyback_ not sure "accessor" is the correct term16:44
alan_g"accessor" or "factory method" or ...16:46
greyback_ack16:46
alan_gI'd rather only expose things that are actually useful16:48
greyback_that fair. I'm not that opinionated on this, just wanted to raise the question as to how you expect the api to be used16:49
alan_gSure. I'm not opinionated either. The interface is already public so there's little cost to exposing it - except that folks might use it (and write bad code).16:51
greyback_I'll let you have the final call so.16:52
alan_gDo you have an opinion on my example above? After writing my WindowManager example code think there's too much "wiring" in the example and not enough in the library. (I could push the "Tracker" and "Factory" wiring into Mir and give it a msh::WindowManger interface)16:56
greyback_I do like the basic design of WindowManager, and think TilingWindowManager is a nicely written bit of example code. It is a bit surprising for me that different methods of WindowManager will be called in different threads tho, but as long as that's clearly documented it is fine17:04
greyback_yeah the tracker is pretty typical, I had expected it to be in Mir17:05
greyback_if you intend to push WindowManager into Mir, then yeah think it logical the Trackers will have to go in too17:06
attente_will mir support the same kind of pointer hover enter/exit behaviour as in X? per http://tronche.com/gui/x/xlib/events/window-entry-exit/normal.html17:07
racarr_attente_: Yes17:08
alan_gI'm not sure the design is yet mature enough to put in the API (e.g. no focus switching) but it does seem to be that stuff is missing that would make Mir usable.17:09
racarr_attente_: Currently support is spotty, I guess it wont work under unity8 and should work otherwise17:09
racarr_soon it will work fine :)17:09
attente_racarr_: thanks!17:10
greyback_racarr_: qtmir/unity8 will generate the hover enter/exit events for the client, if mir supports such an event17:10
racarr_greyback_: DO you think so? I think it will drop it in QtEventFeeder17:11
racarr_the bit that17:12
racarr_switches based on the touch action17:12
racarr_just drops hover enter/exit afairc17:12
racarr_QtEventFeeder::dispatchMotion...are you saying they are then17:13
racarr_generated again later?17:13
greyback_racarr_: we'll generate them in the MirSurfaceItem - which lives in our scene and knows when mouse in/out occurs17:14
racarr_oh17:14
racarr_future perfect17:14
racarr_will17:14
racarr_not17:14
racarr_present perfect17:14
racarr_will17:14
racarr_haha17:14
greyback_yes sorry17:14
racarr_No its ok :p yea17:15
racarr_h17:15
racarr_that is where to do it. nothing atm I think though17:15
greyback_Hayy New Year btw!17:15
racarr_Happy new year!17:15
racarr_There are some pointer event changes upcoming that should make this possible to implement correctly17:15
racarr_currently you cant really differentiate between17:15
racarr_touch points hovering17:15
racarr_and the pointer17:15
greyback_yeah, mouse support need work still, will be dandrader's first mission when back17:15
racarr_ah cool17:16
racarr_im cleaning up the mir end :)17:16
racarr_SYNERGY17:16
greyback_nice17:16
greyback_it could do with it17:16
greyback_any idea how's the libinput integration going too?17:16
racarr_new model is touch/pointer event are seperate event types17:16
racarr_hmm17:16
racarr_not really17:16
racarr_definitely some progress on the17:16
racarr_infrastructure to17:17
greyback_+1 for the different event types anyway17:17
racarr_well like support libinput based devices and17:17
racarr_also use the android stack17:17
racarr_etc17:17
greyback_gotcha17:17
racarr_I wouldnt be expecting 2 finger scroll this month though :(17:17
racarr_maybe thats pessimistic or anpok was working over holidays or something lol17:17
racarr_greyback_: Did you have nice holidays?17:18
greyback_racarr_: yeah, was the perfect length to forget everything work related17:19
greyback_you?17:19
greyback_see the family?17:19
racarr_Yeah excellent :D Also forgot everything. Went to see family17:19
racarr_they gave me a violin17:19
racarr_A+!17:19
greyback_nice!17:23
greyback_I wouldn't like to be your neighbor right now...17:23
greyback_we have an old family violin which my mother used to play when she was young. We got it restored and gave it to my sister's daughter17:24
greyback_ofc no such thing as a free gift - she's now eternally obliged to play it at family gatherings :)17:24
racarr_hehe of course17:36
alan_gracarr_: kdub I could do with another vote on https://code.launchpad.net/~alan-griffiths/mir/tiling-window-mamagement/+merge/24522817:57
kdubalan_g, okay17:57
=== alan_g is now known as alan_g|EOD
kdubalan_g, will review probably after your EOD, my brain is spooled up with how to improve android display construction18:00
alan_g|EODkdub: np18:01
racarr_wow this vacation stuff18:14
racarr_really works18:14
racarr_I actually had fun reviewing the managed surface branch18:14
* alan_g|EOD thinks he needs a vacation then18:16
racarr_I think its ok to land this yeah? https://code.launchpad.net/~mir-team/mir/port-examples-off-mir-event-access/+merge/24524018:28
racarr_hmm I guess anpok is still gone18:32
racarr_evdev-input-platform isnt easy18:40
=== Nothing_Much is now known as something
=== something is now known as Nothing_Much
racarr_Finished reviews gonna take a niec long lunch19:48
racarr_back in ~1 hour19:48
kgunncamako: are we fully swtiched over from asio to glib mainloop?21:08
kgunn...guessing not on rtm21:08
camakokgunn, yes21:08
camakokgunn, correct .. not on rtm21:09
kgunnkdub: for "Make nested & offscreen an actual platform" it's marked ready for release...so we really have a sw FB for offscreen on devel ?22:58
RAOFThat would be pretty rad.23:02
racarr_Hi RAOF!23:04
racarr_Happy new years :D23:04
RAOFracarr_: Happy new year!23:04

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!