[16:06] <attente_> dandrader: hi. is clipboard support only available through u8 and not mir?
[16:06] <dandrader> attente_, yes
[16:08] <attente_> dandrader: that means toolkit support for clipboard then depends on u8, isn't that a problem?
[16:09] <dandrader> attente_, current clipboard architecture is not the final one
[16:09] <attente_> dandrader: oh ok, so there is some plan to move it back down to the mir level?
[16:09] <dandrader> attente_, I don't think so. if I'm not mistaken the plan is to move it to content hub
[16:10] <dandrader> attente_, consensus seems to be that system clipboard  != display server
[16:10] <dandrader> attente_, tvoss knows the details
[16:12] <attente_> dandrader: ok, thanks
[17:01] <mardy> bschaefer: hi! I'm trying to run a SDL2.0 game on the nexus 4
[17:01] <bschaefer> mardy, awesome, hows that going?
[17:01] <mardy> bschaefer: SDL_CreateWindow fails:
[17:01] <bschaefer> :(
[17:01] <bschaefer> mardy, are you trying to run this on unity8?
[17:01] <mardy> Could not create window: Failed to created a window surface 0x1
[17:02] <bschaefer> or on a standalone mir server?
[17:02] <mardy> bschaefer: looks like the message comes from here: http://hg.libsdl.org/SDL/file/2b2cfda26085/src/video/mir/SDL_mirwindow.c#l133
[17:02] <mardy> bschaefer: unity8
[17:02] <bschaefer> oooo ... haha yeah i think thats my fault
[17:02] <bschaefer> for not patching SDL2 yet...
[17:02] <bschaefer> i think sdl2 still has opengl compiled with it on the phone
[17:03] <bschaefer> mardy, sooo you'll need to recompile SDL2 with --disable-video-opengl
[17:03] <bschaefer> IIRC
[17:03] <mardy> bschaefer: I had to rebuild libsdl2 myself, because of https://bugs.launchpad.net/bugs/1402753
[17:03] <bschaefer> eeek, i've not seen that yet!
[17:03] <mardy> bschaefer: ok, I'll try
[17:03] <bschaefer> mardy, thanks! let me know if that works
[17:22] <mardy> bschaefer: after rebuild with --disable-video-opengl, the window is created and the app runs, but nothing is visible on the screen
[17:22] <mardy> bschaefer: it's not just black, it's completely transparent
[17:22] <bschaefer> mardy, what app are you testing?
[17:22] <mardy> bschaefer: https://github.com/mardy/trg2/tree/sdl2.0
[17:23] <mardy> bschaefer: the SDL code is in src/main-sdl2.cpp
[17:23] <bschaefer> mardy, o haha yeah i was about to say looks like 1.2
[17:24] <mardy> bschaefer: what happens if the window size does not match the screen? could this be the problem?
[17:24] <bschaefer> mardy, try to confirm its getting the correct window size
[17:24] <bschaefer> yeah
[17:24] <bschaefer> if its 0,0
[17:24] <bschaefer> that would be an issue :), you can also try to force a size to confirm is an issue on my end
[17:25] <mardy> bschaefer: SDL_GetWindowSize() returns the same size I used to create it: 854x480
[17:25] <mardy> bschaefer: I didn't understand: should I specify 0,0 as size?
[17:26] <bschaefer> mardy, no, i was thinking if it get 0,0
[17:26] <bschaefer> it would be an issue but mir doesn't support resize :)
[17:26] <bschaefer> mardy, is it still ... working besides no image?
[17:27] <mardy> bschaefer: yes, the music plays
[17:27] <bschaefer> mardy, alright...whats the res on the n4?
[17:28] <bschaefer> also, if you want to you can get some errors
[17:28] <bschaefer> printf("ERROR:\n%s", SDL_GetError());
[17:28] <bschaefer> IIRC
[17:30] <bschaefer> mardy, let me get a phone running for me to attempt to run the game!
[17:31] <bschaefer> mardy, also you made a desktop file to launch the app right?
[17:37]  * bschaefer waits for phone to not be dead
[17:38] <mardy> bschaefer: sure, I have a click dir, let me push it somewhere
[17:38] <bschaefer> click dir? you've made a click package?
[17:38] <bschaefer> man i need to learn how to make one of those haha
[17:40] <mardy> bschaefer: https://github.com/mardy/trg2/tree/click
[17:41] <mardy> bschaefer: so, to build the app:
[17:41] <mardy> bschaefer: mkdir build && cd build && cmake .. && make
[17:41] <mardy> bschaefer: then, once the executable is build: cd ../click && cp ../build/trg2 . && click build .
[17:41] <bschaefer> cool, and do you get any errors after you init
[17:41] <bschaefer> or after you create the window?
[17:42] <mardy> bschaefer: nope
[17:42] <bschaefer> ie. after you do an SDL_Init do a print on SDL_GetError()
[17:42] <bschaefer> o, dang
[17:42] <bschaefer> hmm
[17:42] <mardy> bschaefer: If I print SDL_GetError() I can see some error, but it varies; I think that I shouldn't call SDL_GetError() if the functions return success
[17:43] <mardy> bschaefer: anyway, I added a SDL_WINDOW_FULLSCREEN flag, and if I specify a size of 768x1222 (like other QML apps), I see that the returned size is 768x1280, which is really fullscreen
[17:43] <bschaefer> mardy, yeah just call it anytime
[17:44] <mardy> bschaefer: I get this: Failed loading eglChooseConfig: /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0: undefined symbol: _eglChooseConfig
[17:44] <bschaefer> if theres no error, its empty
[17:44] <bschaefer> hmm IIRC thats not really an error but still happens
[17:44] <mardy> bschaefer: or maybe they forget to clear it?
[17:44] <bschaefer> possibly that
[17:45] <bschaefer> mardy, i also have an sdl1.2 branch as well
[17:46] <bschaefer> https://github.com/BrandonSchaefer/SDL1.2-Mir
[17:46] <bschaefer> mardy, and you app works fine on X11?
[17:46] <bschaefer> your*
[17:47] <mardy> bschaefer: yep
[17:47] <bschaefer> cool, just want to double check :)
[17:50] <bschaefer> mardy, another thing you could test
[17:50] <bschaefer> in SDL/tests/
[17:50] <mardy> bschaefer: now I added a probably useless SDL_GL_MakeCurrent, and it returns 0 (no error)
[17:50] <bschaefer> theres a few tests that are a good to check things are working
[17:50] <bschaefer> hmm
[17:50] <bschaefer> mardy, no you do need that
[17:51] <bschaefer> well...
[17:51] <bschaefer> mardy, you should also store the SDL_GLContext
[17:51] <bschaefer> so you can do
[17:51] <bschaefer>   SDL_GL_DeleteContext(context);
[17:52] <mardy> bschaefer: that shouldn't have an impact, right?
[17:52] <bschaefer> nope
[17:52] <mardy> bschaefer: ops, I have to leave now
[17:52] <bschaefer> none at all :)
[17:52] <bschaefer> alright, do you have an email?
[17:53] <bschaefer> err
[17:53] <mardy> bschaefer: if you can find some time to play with it, I'd be grateful
[17:53] <bschaefer> yup
[17:53] <mardy> bschaefer: alberto.mardegan@canonical.com
[17:54] <bschaefer> mardy, cool, ill take a look. Thanks!