/srv/irclogs.ubuntu.com/2016/10/03/#ubuntu-unity.txt

=== safetypeaches is now known as Guest82846
=== marcusto_ is now known as marcustomlinson
=== dandrader is now known as dandrader|afk
mterrymzanetti: I assume you saw my note about session-lightdm -- just rip it out for now, not quite ready to land as is13:11
=== Guest82846 is now known as peaches
mterrymzanetti: where are we with the current silo?  (like how close to being done?)13:47
mterryI have a fix I'd like to add (for bug 1629009) -- the only problem is I'm not done finding the right fix13:48
ubot5bug 1629009 in webbrowser-app (Ubuntu) "Does not work inside a snap due to hardcoded paths" [High,In progress] https://launchpad.net/bugs/162900913:48
mterryminor issue  :)13:48
=== dandrader_ is now known as dandrader
mterrymzanetti: we might want a rush order silo for the media-suggests change...14:07
tsdgeospstolowski: do you do model updates from threads?14:22
tsdgeosfrom https://errors.ubuntu.com/problem/0168de360a9e17b6337e0304609320555b011747 it seems you do14:22
tsdgeosthat's kind of dangerous last time i read aboutit14:22
pstolowskitsdgeos, unlikely. we do receive results from scope listener in a thread, yes, but then they are pushed to the main loop via custom qevent and applied to the model there14:25
tsdgeospstolowski: see taht backtrace14:26
tsdgeosyou're creating a QtConcurrent::run that calls beginResetModel14:27
pstolowskitsdgeos, ah, but this is for settings model, not search results model (my bad, you didn't say which one and I assumed wrong)14:30
pstolowskitsdgeos, indeed. that sounds like it's a problem.14:30
tsdgeoswell the crash seems to disagree with you :D14:30
tsdgeosbut maybe something else14:31
tsdgeosi agree14:31
pstolowskitsdgeos, we do use QtConcurrent to handle child scopes update & reset settings model in response14:32
om26erHi! Is there a way to get unity8 pointer co-ordinates ?15:04
om26erI need that for autopilot where there is a need to do relative moves from the current position of the pointer.15:04
=== om26er is now known as om26er1
=== om26er1 is now known as om26er
greybackom26er: nope, that ability is not possible currently. We'd need to add another dbus api for that15:38
greybackI'd question why relative moves are needed at all15:38
greybackAP moved the cursor, AP should know where it is, no?15:38
om26ergreyback, Its complex than that, AP uses evdev, and evdev supports two modes relative and absolute(good for touch where you don't need to see the pointer).15:40
om26erin relative mode we need to give new co-ordinate relative to current position. So to reply to your initial question, autopilot does not initially know where the mouse is, it however does keep a track of last known position.15:41
om26erso when the test is run for the first time, it won't know the position because there is no way.15:42
greybackom26er: can it not do an absolute move, and relative from then on?15:42
om26ersounds hackish, could work but the mouse won't start moving from where it is, rather would move from a hard-coded position, always.15:43
om26erlets say I move it to ABS position 0,0 first and then move to where I want it to be.15:45
greybackwhy hardcoded? You can calculate the position that the move is going to start. Absolute move the cursor to that spot. Then relative move from then on15:45
om26erI'll try to use that approach as a stop-gap and see how it behaves15:45
om26ergreyback, for abs move, the pointer does not show, as I said its for Touch15:46
om26erthat's the approach we are currently using when our tests run on phones/tablets15:46
greybackif it is for touch, I don't understand why the pointer position is wanted at all15:47
dandraderom26er, using evdev relative events to position unity8 cursor exactly where you want might be trick. there are settings like pointer acceleration and speed you would have to consider I think15:48
dandrader*tricky15:48
om26ergreyback, I said absolute move is for touch and relative move is for Pointer (in the context of evdev)15:49
greybackom26er: ok, gotcha15:50
om26erdandrader, hmm, their docs don't seem to mention that, thanks for the heads up, will take deeper look once I actually implement the moving pointer15:51
greybackbut I still thought you could absolute move a pointer. Maybe not15:51
greyback(programmatically, not physically ofc)15:51
dandraderom26er, those are done by mir, using libinput, I think15:51
dandradergreyback, evdev is pretty lowlevel. it doesn't have a concept of pointer.15:52
dandradergreyback, just devices that generate relative_x and relative_y input events15:53
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== peaches is now known as Guest68911
=== Guest68911 is now known as safetypeaches
=== safetypeaches is now known as peaches
=== peaches is now known as peaches|work
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
=== peaches|work is now known as peaches

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