**** BEGIN LOGGING AT Sat Nov 21 02:59:59 2015 Nov 21 09:34:19 morning Nov 21 09:34:22 Tofe: you around? Nov 21 09:34:26 morning Nov 21 09:34:28 Herrie: yes Nov 21 09:36:16 Added some logging to enyo-build.js on my N4 and ran Accounts (app menu working) and Clock (app menu not working): https://bpaste.net/show/c7f9874b1038 Nov 21 09:37:36 En my enyo-build.js that I pushed to /usr/palm/frameworks/enyo/0.10/framework/build/ Nov 21 09:37:40 https://bpaste.net/show/f917829f79c2 Nov 21 09:40:26 oh thanks Nov 21 09:41:11 I have no "Herrie appmenu openAppMenu" for the Clock app, which seems to indicate that onOpenAppMenu never gets triggered for Clock app somehow Nov 21 09:41:46 yes, my thought also Nov 21 13:19:57 I'll add some more logging to see if I can find anything useful Nov 21 13:20:01 But so far not much Nov 21 18:49:06 Tofe: You still around? Nov 21 18:51:12 Herrie: a bit like hop-on hop-off, but yes Nov 21 18:51:44 Tofe: OK... Been looking a bit more into the appmenu stuff Nov 21 18:51:44 Didn't get much time to continue the analysis today Nov 21 18:51:56 oh, ok, great Nov 21 18:52:00 Not that I think I can fix it but at least to get clues Nov 21 18:52:24 Seems that for a working app menu I have right away a Nov 21 13:42:13 mako luna-next[1389]: WARNING: 13:42:13.370: void luna::Compositor::surfaceRaised() the window luna::CompositorWindow(0x19e4ab0, parent=0x19ff550, geometry=0,0 768x1154) is going to be raised Nov 21 18:52:40 So seems that maybe it's how things are handled by luna-next or compositor that are the issue? Nov 21 18:53:04 BEcause I don't get this for the one where app menu doesn't work Nov 21 18:53:36 mmh Nov 21 18:54:04 but in both case, the app is in focused *before* trying to open the app menu, right? Nov 21 18:56:23 Tofe: Yeah Nov 21 18:56:36 I think so, let me double check to be sure Nov 21 18:57:14 The raising is because of the app being focused, which is triggerd by PalmSystem.activate Nov 21 18:57:58 In the log you provided earlier, I see PalmSystem.activate is called in both case Nov 21 19:03:59 Tofe: OK I think I got a proper clue now! Nov 21 19:07:37 https://bpaste.net/show/86792d358815 Nov 21 19:08:15 Seems the one that aren't headless get the focus earlier. The noWindow apps receive it later which might be the cause of the app menu not showing up Nov 21 19:08:49 that's a good guess Nov 21 19:09:05 In both cases I have the app open and I do a luna-send to trigger the app menu Nov 21 19:09:34 Open + focussed I should say Nov 21 19:09:53 But seems the noWindow apps, even though they are open and focussed aren't really focussed Nov 21 19:09:58 At least not on the visible window Nov 21 19:10:05 Maybe on the headless one? Nov 21 19:10:10 that last sentence is exactly my thought Nov 21 19:11:04 So I have clock open & focussed, then do luna-send -n 1 luna://com.palm.applicationManager/launch '{"id":"com.palm.app.clock", "params":{"palm-command":"open-app-menu"}}' Nov 21 19:11:13 And i did the same for accounts Nov 21 19:11:34 It works for accounts but not for clock or email. Nov 21 19:12:38 That should give you some clues as to how to fix it. I suspect it's going to be a fairly easy fix for what seemed a complicated issue :P Nov 21 19:13:01 It's usually like that yes Nov 21 19:19:56 mmh... no, maybe it's not that, in the end Nov 21 19:20:49 because what we do currently is, when we get a relaunch event, we do Mojo.relaunch on all the windows of the app, headless or not Nov 21 19:21:39 lines 14-17 correspond to the relaunch made on the headless window; lines 18-23 are for the window that is visible Nov 21 19:24:25 Tofe: Is that the correct way to do it? Nov 21 19:24:37 relaunch on all windows Nov 21 19:24:52 Shouldn't we check if there's only 1 do it on that one. If there's 2, do it only on 1? Nov 21 19:25:06 I think it was done that way on legacy Nov 21 19:25:16 It somehow feels wrong to me this way Nov 21 19:29:45 https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/webbase/WebAppBase.cpp#L113 Nov 21 19:30:55 https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/webbase/SysMgrWebBridge.cpp#l128 Nov 21 19:32:47 https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/webbase/WindowedWebApp.cpp#L841 Nov 21 19:33:49 https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/webbase/PalmSystem.cpp#l1078 Nov 21 19:34:32 https://github.com/openwebos/webappmanager/blob/d5d40487cc28bcf15ed2cc836b78de56920da22f/Src/lunaui/cards/CardWebApp.cpp#L628 Nov 21 19:34:42 Some references :P Nov 21 20:16:59 Trying different things with focus and so on, also trying to pass --disable-web-security to LunaWebAppManager, but none of this worked Nov 21 20:17:37 However I was wrong: Mojo.relaunch is only executed on the main window **** ENDING LOGGING AT Sun Nov 22 02:59:59 2015