/srv/irclogs.ubuntu.com/2015/06/18/#ubuntu-mir.txt

AlbertA@vogons: FYI mir 0.13.3 release is now waiting for QA approval01:06
RAOFWoot.01:06
dufluRAOF: Remind me what we can't load twice; is it libprotobuf or libmirprotobuf?01:49
RAOFduflu: libprotobuf01:49
dufluI recall I proposed a solution to that months ago01:49
dufluWe just never implemented it01:49
dufluNeed to dig it up01:49
RAOFWell, I guess it's actually libmirprotobuf, but due to a libprotobuf behaviour.01:50
dufluI also recall alf logged a manual test case somewhere01:52
RAOFYeah, it *would* be possible to patch protobuf to not abort on us.01:52
RAOFThis has been proposed upstream (at least twice that I'm aware of).01:53
dufluRAOF: Or just dlopen libprotobuf and throw away the key. Leaking it once on startup ensures the dynamic loader won't load it twice01:55
RAOFAh, no.01:55
RAOFThe problem is that libprotobuf calls abort() when we load libmirprotobuf twice.01:55
dufluRAOF: Init function?01:55
RAOFCorrect.01:56
RAOFSpecifically - the protobuf compiler adds an init function to libmirprotobuf that calls a libprotobuf function that is (a) necessary, and (b) aborts() if called twice.01:57
=== ljp is now known as lpotter
RAOFWell, *that* has profoundly unintuitive consequences...04:48
RAOFOk, sure. Don't call mir_connection_* functions from MirConnection. Why not.04:51
dufluRAOF: I would expect deadlocks (default mutexes are not reentrant)...?05:26
RAOFThis call had no mutexes held.05:27
RAOFBut it turns out that it'll cause mir-client-debug-extension to fail to link :)05:27
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
dandraderanpok, ping11:55
anpokdandrader: pong11:58
anpokdandrader: you need relative mouse coordinates.. and hints on how to disable the cursor display of usc?11:59
dandraderanpok, I would say mouse device events instead of the higher level pointer events12:00
dandraderanpok, and yes, a way for qtmir/unity8 to disable USC cursor12:00
anpok.. we still have to implement sending raw mouse movements12:07
dandraderanpok, yeah, that card, right. https://trello.com/c/FfH2HUV8/109-add-client-api-for-subscription-to-raw-events12:07
dandraderanpok, but is it already possible to hide/disable USC cursor?12:08
anpokyes .. I think through the cursor configuration ..  just checking12:08
anpokhm ok I might be wrong12:10
=== alan_g is now known as alan_g|lunch
anpokso it seems we need to add something for both12:36
=== alan_g|lunch is now known as alan_g
dandraderanpok, should I create a card for this "make it possible for qtmir/unity8 to hide/disable USC cursor"? or will you do it?13:46
dandraderanpok, well, I created https://trello.com/c/VrM6AVaq14:20
anpokdandrader: take a look at tests/acceptance-tests/throwback/test_client_cursor_api.cpp14:41
anpok-> DisabledCursorClient..14:41
anpokset mir_disabled_cursor_name and configure at surface14:42
=== dandrader is now known as dandrader|doctor
=== alan_g is now known as alan_g|EOD
AlbertAI think locking a mutex is a fundamentally bad idea....17:44
AlbertAin a destructor17:44
kdubAlbertA, maybe if there's a static that needs modifying, might be okay17:56
=== mhall119_ is now known as mhall119
=== dandrader|doctor is now known as dandrader
attentehi, is mir_surface_configure_cursor() working for anyone in the demo shell? doesn't seem to do anything for me18:23
attentetried to pass in mir_caret_cursor_name, but no luck...18:24
racarr_attente: The last time I tried I was able to run mir_Demo_client_cursors18:48
racarr_and uh18:48
racarr_hover the cursor over the surface and see the cursor change18:48
racarr_lemme try again now18:48
racarr_attente: works for me18:48
racarr_-.- which must not be particularly helpful18:49
racarr_ill help you more after lunch! I dunno what would be up with your configuration...18:49
attenteracarr_: sure, thanks :)18:50
racarr_back19:27
racarr_attente: So does demo_client_cursors work19:27
attenteracarr_: is there something special i need to do to build the examples?19:53
racarr_attente: No it should be there in build/bin/ or mir-demos package19:56
attenteracarr_: ok, it just pops up a small grey surface, is the cursor supposed to change when i mouse over?20:16
attenteit doesn't change when i click either20:16
racarr_attente: Are you perhaps on fedora or something20:23
racarr_I wonder if the cursor locations are different the20:23
racarr_XCursor loading isn't horribly sophisticated20:23
racarr_attente: There is mir_demo_client_animated_cursor which uhhh20:24
racarr_shows like a white rectangle fade opacities20:24
racarr_that doesnt require XCursor20:24
racarr_so if that works, then the cursor is working but20:24
racarr_the cursor themes aren't working20:24
attenteracarr_: the animated cursor changes it to a white square that fades in repeatedly20:25
attenteis it supposed to be like that? or is there some graphic usually?20:25
racarr_attente: No thats20:26
racarr_the graphic :p20:26
attenteah :)20:26
racarr_but now we've verified that setting hte cursor works20:26
racarr_but loading the themed cursor images doesn't work20:26
racarr_attente: Hmm...so...uh...20:26
attentewhere do those images come from usually?20:26
racarr_attente: You can file a bug and I can help at some point or20:26
racarr_attente: instrument src/server/input/xcursor_loader.cpp to see whats happening20:26
racarr_attente: I dunno lets see20:26
racarr_attente: 3rd_party/xcursor/xcursor.c20:27
racarr_#define XCURSORPATH "~/.icons:/usr/share/icons:/usr/share/pixmaps:~/.cursors:/usr/share/cursors/xorg-x11:"ICONDIR20:27
racarr_#define ICONDIR "/usr/X11R6/lib/X11/icons"20:27
racarr_also accepted20:27
racarr_XCURSOR_PATH env var20:27
attenteoh. do you think if i install adwaita-icon-theme it might work?20:28
racarr_attente: Yeah! Do you not have an icon theme?20:28
racarr_You need something in one of those directories20:29
racarr_with20:29
racarr_a cursor.theme inside20:29
racarr_uh20:29
attenteracarr_: i guess i wouldn't have it under a clean jhbuild20:29
racarr_anyway if you have it ina nothe rlocation we can modify things to20:29
racarr_look there20:29
racarr_ah20:29
racarr_interesting20:29
attenteracarr_: i'll try it and let you know :)20:29
attentethanks20:29
racarr_Thank you20:29
racarr_we should add some logging!20:29
attenteracarr_: unfortunately no luck :(20:39
racarr_attente: I guess if it was in a nonstandard location youw ould need to set20:39
racarr_XCURSOR_PATH to the folder containing20:39
racarr_the20:39
racarr_theme folder20:39
attenteracarr_: even setting it doesn't seem to work20:42
racarr_attente: Hmm...the env variable definitely works for loading non system themes because thats used in a test20:43
racarr_not sure whats going on...I guess wed need more logging to tell20:44
attenteracarr_: do you know what directory the cursors are stored in your machine? can you do a dpkg -S on it to see what package they come from?20:44
racarr_attente: I have /usr/share/icons/Adwaita/cursor.theme20:48
racarr_from gnome-themes-standard-data20:48
racarr_and dmz-cursor-theme /usr/share/icons/DMZ-Black/cursor.theme20:48
racarr_+ DMZ-White20:48
attenteracarr_: i'm getting this from strace|grep: http://paste.ubuntu.com/11737387/20:51
attenteer wait20:51
attentei have to do that on the server20:51

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