[00:51] * robert_ancell -> lunch [01:02] robert_ancell: When you get back we need to discuss how to proceed with Operation: Worst Thing Ever (ie: sideband pipe between usc and Xmir) [01:12] duflu: You tracked down damage problems? [01:14] RAOF: Kind of, not really. I need to devote more hours to better learning XMir [01:35] kdub: You're back? Congratulations by the way [01:50] racarr: long shot, but still around ? [01:55] RAOF: ickle says he "pushed a patch" for the intel cache/lines issue with bypass. But I can't tell which commit(s) it was. Do you think... http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=47e718bf321f6fe80dc5f797f433b00bc8de91c7 ? [01:56] RAOF, yes. I was also wondering how far from working the focus thing is - that would at least reduce the pressure for a less hacky solution [02:12] duflu: It's all folded up into the single monolithic xmir commit, but yeah. [02:13] duflu: It's a bit ugly; we should either work out how to unuglify it - probably by telling the DDX when bypass is in effect, rather than having it guess it. [02:13] RAOF: If you can get the bo flags then it's easy :/ [02:14] The bo-flags are userspace only [02:15] RAOF: Oh, actually that wouldn't help. Most large surfaces are now SCANOUT even when not bypassed [02:16] RAOF: A surface attribute? Still ugly [02:17] A buffer attribute. [02:17] As it has to be :) [02:18] Because SCANOUT is already a possible pessimisation in the non-bypass case. [02:35] robert_ancell: Oh, the focus thing is mostly ok. It works for single-head; I just need to work out what I do wrong in the multihead case. === chihchun_afk is now known as chihchun [03:05] RAOF: Sanity-check vladmir-upstreaming FTW? [03:05] duflu: Yes. [03:05] Although you'll want to pull the changes back to the ubuntu branch. [03:06] Because vladmir-upstreaming is based on master, which is an ABI bump ahead of us. [03:07] RAOF: Argh. Maybe I'll just keep working with apt-get source on saucy to minimize impact on the system... [03:08] duflu: vladmir-upstream-base is the tag you want; it's easy to reproduce xmir.patch [03:08] duflu: git diff vladmir-upstream-base..vladmir-upstreaming > debian/patches/xmir.patch [03:11] RAOF: When will that be upstreamed? Post 13.10? [03:11] Once it's broadly feature-complete. [03:11] I think glx-bypass is the final piece of that. [03:35] RAOF: I can't see any guarantees about which portion of damage actually makes it to the swap_buffers. How can we be sure about the exact damage region that *really* got swapped? [03:35] ... without waiting [03:35] Oh, actually, maybe the answer is in the DDX... [03:36] What do you mean? The drivers are responsible for passing a correct region into submit_rendering. [03:36] And they're responsible for doing enough flushing that the fd submitted to Mir actually contains the rendering expected. [03:36] RAOF: Yes! OK so the answer is the region parameter to the submit. Ta. [03:38] As a practical matter, the DDXen all pass the region that they get passed in. [04:45] * duflu -> lunch [05:04] Ah, good. Now with significantly less password-leakage-across-VT-switch! [05:25] robert_ancell: So, the XMir side of focus-thing works. The Mir side (drop focus on VT switch) hasn't landed yet as far as I can tell. [05:52] RAOF, cool [05:53] robert_ancell, ping [05:53] robert_ancell, don't have broadband in the new house, yet [05:53] tvoss_, ok, so not coming to meeting? [05:54] robert_ancell, trying, but don't know if it works, only 3G here :/ [05:58] hikiko, duflu, racarr, kdub, meeting [06:18] duflu, should we close bug 1217262 invalid? [06:18] bug 1217262 in Unity System Compositor ""sudo restart lightdm" always hangs/fails when using unity-system-compositor" [Undecided,Incomplete] https://launchpad.net/bugs/1217262 [06:18] tvoss_: How did you go with Mir-native-OpenArena ? [06:19] duflu, you may have been hitting the problem where u-s-c was left running due to the way it was launched with a shell script [06:19] robert_ancell: I think it might still be valid. We have something occasionally keeping DRM open and triggering bug 1206633 [06:19] bug 1206633 in Mir "Mir/unity-system-compositor fails to start: Error opening DRM device" [Critical,Triaged] https://launchpad.net/bugs/1206633 [06:20] ... but it's racy. If you stop, pause, start, then it's OK [06:20] yeah of course it's racy.. [06:20] As mlankhorst keeps pointing out [06:20] duflu, then is it better covered by that specific bug? The bug you filed is a bit vague and likely to attract random me toos [06:20] unity-system-compositor needs to be completely dead before starting lightdm again :P [06:21] mlankhorst: That should surely be solvable in upstart [06:21] mlankhorst, right, and lightdm does wait for that. But there was a bug where it was launched by a shell script without exec and lightdm was killing the shell script and not realizing u-s-c was still running [06:21] or we should start usc WAY early.. and make plymouth a client to usc.. [06:21] robert_ancell: Incomplete bugs should be left to expire naturally due to inactivity I say [06:22] "Expire of natural causes" [06:22] duflu, well, you filed this bug... why not just close and re-open if you see it again? [06:22] robert_ancell: I will retest for it now... [06:24] robert_ancell: Reproduced. Now a duplicate of bug 1206633 :) [06:24] bug 1206633 in Mir "Mir/unity-system-compositor fails to start: Error opening DRM device" [Critical,Triaged] https://launchpad.net/bugs/1206633 [06:24] duflu, awesome [06:25] duflu, is bug 1216245 still applicable? afaik the demo shells don't need any special code for multi-monitor [06:25] bug 1216245 in Mir "mir_demo_server_shell doesn't respond to hotplugging monitors" [Undecided,New] https://launchpad.net/bugs/1216245 [06:26] robert_ancell: Yes it's an issue and nice to have for testing. Just set Wishlist [06:33] duflu, are you working on the bug: #1216522? [06:33] bug 1216522 in XMir "XMir hung in xf86CrtcSetModeTransform()" [Critical,New] https://launchpad.net/bugs/1216522 [06:33] robert_ancell: I'm not sure having a completely broken display is only Medium... bug 1218815 [06:33] bug 1218815 in xserver-xorg-video-ati (Ubuntu) "[radeon] Graphic glitches and screen corruption (vertical lines) on XMir surfaces only" [Medium,Triaged] https://launchpad.net/bugs/1218815 [06:34] duflu, change it :) [06:34] I'm just doing a first cut for triaging, I'll re-look over high-med-critical and do them next [06:35] question: I startx to have a 2nd window manager apart from unity and the events (like double click on desktop) are send to unity (wrong vt?) is this a bug or something expected? [06:35] hikiko: Yes, RAOF is working on that [06:36] plus programs like synergy dont work (but ok that's expected I guess) [06:36] robert_ancell: The hang bug is incomplete. I haven't stress-tested MM recently to retry [06:36] duflu, and there's no way I use X without mir for the 2nd wm so that I can debug more easily the xmir? (eg attach a gdb etc) [06:37] hikiko: I don't think you can right now due to the input focus problems. RAOF will have it fixed soon. Meanwhile you probably need a second machine [06:38] ouch :) [06:38] hikiko: Yeah, you can; but until https://bugs.launchpad.net/ubuntu/+source/unity-system-compositor/+bug/1192843 is fixed all keyboard input will always go to XMir. [06:38] Launchpad bug 1192843 in XMir "XMir receives input from other VTs" [Critical,In progress] [06:38] Alternatively, go old-school and move your desktop to a text VT :/ [06:38] duflu, not sure what you mean? [06:38] tvoss_: You were going to benchmark OpenArena with the Mir-native-SDL ? [06:38] Or something [06:38] and could you guys suggest me a bug that is important to fix and none of you is working on it atm? [06:39] hikiko: I think generally anything Critical in the mir or xmir projects [06:39] because most of our critical bugs are either GPU specific (need ATI for example) or assigned from what I see [06:39] Hmm, maybe we should unassign those not in progress [06:40] kevin suggested one that is a test failure (but it's a bug that only appears some times) that ^ you said is incomplete [06:40] 3 others are ATI Specific [06:41] hikiko: Bug 1206633 is a killer. And close to code you have seen recently... [06:41] bug 1206633 in Mir "Mir/unity-system-compositor fails to start: Error opening DRM device" [Critical,Triaged] https://launchpad.net/bugs/1206633 [06:41] cool :D [06:41] Though that might just be upstart scripting. I guess I should test [06:41] I'll pick this one then!! [06:42] duflu, yup, got the numbers, need to post-process them [06:42] hikiko: It might not be a bug. Maybe just our upstart scripts need better dependency rules [06:43] yes I saw your comment [06:44] I'll give it a try though [06:46] hikiko: I also recall that exception wasn't clear which function it came from. Can also happen with errno==0. So maybe you should make the exception clearer first... and mention which function failed [06:47] yes, I did that when I was testing for the nested mir: it was permission denied not success [06:47] and my guess is [06:48] hikiko: I mean, it would be good to propose a branch with better exception details first [06:48] that the problem is that we have that test (what interface version is used?) before we set the drm master [06:48] oh :) [06:48] true! [06:48] will do! [06:48] ok, cool!I'll start with this bug :D thank you duflu! [06:52] final question: for as long as I only have my laptop for development [06:52] is there any way to disable and enable xmir? [06:53] +if I start xserver without -mir and then I start my compiled version of xmir (the branch I work) will I get a crash? [06:53] hikiko: Yes, comment out type=unity from /etc/lightdm/lightdm.conf.d/* [06:54] duflu, if I do so, and compile/start xmir I wont have any issues isnt it? [06:55] or I have to remember to enable it before I test? [06:55] (enable the system's xmir) [06:55] bye all [06:55] hikiko: That only affects the default system logon. You can still run any server manually [06:55] Bye robert_ancell [06:55] cool that was my guess :) [06:56] thanks duflu :) [07:00] good morning [07:14] Morning dholbach [07:15] hi duflu [07:52] RAOF: All root fragments share the same Drawable right? [07:52] Correct. [07:53] They're all associated with the root window, as seen by pScreen->root [07:54] RAOF: Looks like we don't filter damage reports to check if they overlap the fragment in question. Any damage effectively damages all fragments [07:54] This is correct. *but* we take the intersection of the damage with the fragment's region before updating the damage regions. [07:55] RAOF: Still, that explains why on the Mir side I was seeing all outputs redraw even when only one should... ? [07:55] No, I don't think so? [07:55] OK, forget I said that. It's tangental [07:56] We *should* only be calling the driver's copyproc when xmir_window_is_dirty() returns true, which is iff RegionNotEmpty(xmir_window_get_dirty(xmir_win)) returns true. [08:25] duflu, still here? [08:26] hikiko: Yes, but about to vanish for a brief while... ? [08:26] :) [08:27] I have a question but ok, I'll find out! good evening :) [08:27] hikiko: I'll be back soon. What is the Q? [08:30] well, I wonder how and when xmir starts working with the xserver (because I remember that when I was implementing the mir display for X I had to do a trick to tell the xserver not to handle the drm device that mir is using and I want to see if this is necessary in xmir as well) [08:30] it might be related to the 1206633 bug [08:31] bug #120633 [08:31] bug 120633 in telepathy-mission-control (Ubuntu) "Sync telepathy-mission-control 4.26-1 from debian unstable" [Wishlist,Fix released] https://launchpad.net/bugs/120633 [08:31] sorry [08:31] bug #1206633 [08:31] bug 1206633 in Mir "Mir/unity-system-compositor fails to start: Error opening DRM device" [Critical,In progress] https://launchpad.net/bugs/1206633 [08:58] hikiko: I don't think there would be any remaining races for DRM devices in the X server. Because it is single threaded. More likely other processes racing, like maybe plymouth has not finished deactivating yet [09:03] the only reason I suspect xserver is because I get the bug when I start a 2nd instance of lightdm which starts a second instance of xserver [09:04] when it's only lightdm and plymouth I dont get the freeze [09:04] but ok, I'll test a few other things first :) [09:05] hikiko: Try adding a sleep and retry. That will give you an idea of whether the race just lasts a split second [09:07] I will :) [09:52] RAOF: That's fun. Each frame XMir is looping through my *unused* outputs as well as used [09:52] ... or something.... because I have 6 XMir wins to loop through [09:56] Hmm, sometimes 8. This is quite strange [10:17] hey guys, I think I found an odd issue, if you hit the power button at any time in saucy the machine shutsdown with no prompts, this includes if the machine is in lock/sleep mode, meaning someone could leave their machine and it sleeps and locks and someone else hit the power button, all their work is then lost [10:18] davmor2, did you try it without Mir? [10:18] davmor2, that is, without unity-system-compositor? [10:19] tvoss_: nope but I can [10:19] davmor2: Yeah I thought it was a new feature. I like it. Has nothing to do with Mir though [10:20] duflu: I'd of said it was a critical regression it should switch off in locked mode it should just popup the user password dialogue box [10:20] shouldn't switch off even [10:21] davmor2: I suggest you raise it in #ubuntu-desktop. It's really unrelated to this channel [10:22] duflu: will do thanks [10:22] davmor2: Though it's not a security issue. Anyone with physical access to the power button always has the ability to kill a machine. There's no change there [10:23] tvoss_: so yeah happens with with mir removed too [10:23] davmor2, then it's not a an xmir issue [10:25] duflu: indeed that is the case for a hard press but if someone though the machine was hibernating and taps the power button to wake it like they do on windows instant shutdown may not be the desired result :) === hikiko is now known as hikiko|lunch [10:26] I like it. I always hated having to click on a dialog after I've already pressed the power button. [10:27] And it's better than Windows' annoying behaviour of always suspending, IMHO [10:28] duflu: I have no issue with it in an unlocked system, but if I lock my system I'd rather be forced to open the system and ensure there is nothing unsaved before my system shutsdown on me :) [10:29] davmor2: Fair point. And Ubuntu design often makes contentious decisions. You should probably start by raising it in #ubuntu-desktop [10:30] duflu: I am now :) === dholbach_ is now known as dholbach === hikiko|lunch is now known as hikiko [11:40] I filed bug #1220652 now for my problem. the attachments may not be very useful since I'm running normal X again, but just in case someone would have an force-rebootable desktop at some point and could try to reproduce my problem [11:40] bug 1220652 in unity-system-compositor (Ubuntu) "Input devices gone in xmir after forcefully killing unity-system-compositor" [Undecided,New] https://launchpad.net/bugs/1220652 [11:41] and input devices disappearing might be a bit weird anyhow, not shown in the normal logs. [11:42] oh, added the tidbit that writing in VT1 also has the text in VT7, but in lightdm itself I can't type or move mouse [11:44] Mirv, what would be the expected behavior from your pov when forcefully killing usc? [11:47] tvoss_: to that matter, it restarting itself gracefully like unity does [11:48] Mirv, that would be an upstart task, wouldn't it? [11:48] tvoss_: yes, I think [11:49] Mirv, might be good to mention that in the bug report, too [11:49] added ", even after reboot" to the bug title to make it more clear that the killing is not the main issue [11:49] behavior in kill situation might be worth feature request in another bug, but that bug's intend is that I can't use xmir at the moment anymore, for some mysterious reason X [11:50] I'll file another bug for the request to gracefully restart itself [11:51] and that is bug #1220656 [11:51] bug 1220656 in unity-system-compositor (Ubuntu) "Feature request: gracefully restart after being killed (or crashed)" [Undecided,New] https://launchpad.net/bugs/1220656 === alan_g is now known as alan_g|lunch === alan_g|lunch is now known as alan_g [13:06] I have serious multi-screen problems with the XMIR as of saucy release (not -proposed) should I report a bug or are there already fixes in the queue for which I should wait? [13:08] tkamppeter: one minute while i dig [13:08] we've tagged multimonitor here https://bugs.launchpad.net/xmir/+bugs?field.tag=multimonitor [13:08] curious are you on intel? or ati/nvidia? [13:09] kgunn, I am on Intel, Lenovo Thinkpad Twist with Core i& with its built-in GPU. [13:11] tkamppeter: yeah, i'd skim thru the multimonitor tagged bugs...if you don't find a match/similar bug...please file [13:27] kgunn, it seems to be bug 1216472, workaround (1) of this bug solves the problem. [13:27] bug 1216472 in XMir "[xmir] [multimonitor] Frames eventually get slightly out of order, look like glitches or typing will feel slow" [Critical,In progress] https://launchpad.net/bugs/1216472 [13:27] cool [13:28] kgunn, I have marked the "Me too" now and subscribed to the bug. === chihchun is now known as chihchun_afk === alan_g is now known as alan_g|tea === alan_g|tea is now known as alan_g [15:09] bye! [15:59] we need a way to change the client-side connection configuration in integration/acceptance tests [16:01] kdub: which parts of the configuration can't you change? [16:02] if we use mir_connect, we can't put in a stub client-side graphics platform [16:02] was thinking of changing it a bit to use some test connection functions [16:03] but its just nice that the client's exec() in our test framework just uses our public api [16:04] kdub: yes, we should have made the client API mockable [16:07] alan_g, would you be opposed to having integration and acceptance tests connect with something like mtd::mir_connect()? [16:07] (which allows us to put different client connection configurations in, depending on whether we want real graphics or not) [16:10] kdub: If I were not starting from here I'd add a level of indirection so that all the API calls could be intercepted by test doubles. [16:11] with 'here' being 'lots of acceptance/integration tests already written' ? [16:12] "here" being introducing function pointers breaking the ABI [16:12] ah, understood === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [16:16] kdub: I think the better way is for mir_connect() to call through a function pointer that defaults to the current implementation, but can be replaced for a test. [16:17] yeah [16:18] or even, maybe put that function into mir_client_library_debug.h [16:19] probably worth doing, two critical bugs about the tests have popped up related to this [16:25] kdub: "that function" being the existing implementation and the function pointer? [16:26] well, i'm currently thinking the path of least resistance will be a mtf::test_client_connect() function that returns a MirConnection* [16:27] as opposed to adding a mir_connect(, MirClientFnPtrStruct*) [16:28] no touching the API, just a small inconvenience for tests [16:29] kdub: I was thinking of a global pointer variable, not an extra parameter [16:30] mir_connect() calls through (*mir_connect_impl)() which defaults to mir_connect_default_impl() [16:31] and that global pointer can be overwritten via a debug function? [16:32] rather, a function in mir_client_library_debug.h [16:33] Or just declare it in mir_client_library_debug.h and allow it to be assigned to [16:34] yeah, i'll see which is nicer (i'll try to keep the struct containing the function pointers hidden) [16:46] Morning...! [16:47] Zzzz. im not sure its worth it for me to go to the late night weekly [16:47] Afternoon...! [16:47] because I try but this ends up happening every week [16:48] Hey alan_g ! How have you been? [16:48] ;) [16:48] racarr: I've been good. [16:49] How was your vacation? [16:52] alan_g: It was great! [16:53] Left a significant portion of my stress in the desert :) [16:53] Excellent. (Now let's see if we can fix that...) [16:55] racarr: kdub: I've left a couple of MPs for you to review. [16:56] will look [16:56] * alan_g sneaks off 3 minutes early to mother-in-law's birthday... === alan_g is now known as alan_g|EOD [17:50] fun gcc error: "The bug is not reproducible, so it is likely a hardware or OS problem." [17:53] kdub: Lol beautiful [19:59] olli_: kgunn sorry guys chrome crashed [21:11] racarr, "Renamed toggle_dpms to toggle_dpms_between_on_and_off" - love it :) [21:31] robert_ancell: :D I felt pretty happy about that too [21:43] ricmm: Can you tell me more about the screen blanking stuff in upowerd and the small hack you mentioned? I think our DPMS support API is pretty ready to land, so if the mechanism is simple [21:43] maybe I can just do the android impl...like right now! [21:50] rsalveti: ^ [21:51] cool [21:52] rsalveti: also...did i see you mention it was easy to crash (or freeze) mir on N4 today ? [21:52] kgunn: yup [21:53] just installed today's mir image, and could easily crash mir when opening the browse-app, getting back to the shell and then killing the app [21:53] rsalveti: any particular sequence? ( ive been testing regularly....but admit, i hadn't updated today) [21:53] eeewww [21:54] let me reboot and give it another try [21:54] rsalveti: one more....what are "input_tests" ? [21:54] e.g. how to replicate what you see in terms of failed input handling [21:54] oh, it's just that currently powerd is listening for the input events directly [21:55] to support the power button [21:55] that's not the desired way when mir is in place, but it was the way we did this with SF [21:55] Howshould powerd get the power button [21:55] without a window, it doesnt seem it should get it from mir [21:55] what I tried to check is if we were able to get the input events via hal, which wasn't the case [21:55] so it needs to communicate with unity somehow [21:56] seems Mir was getting all the events somehow [21:56] well, powerd is not the right one to handle the power button [21:56] racarr: not really, just exploring a simple interface via the HAL [21:56] racarr: I can take a look at it [21:56] the shell needs to implement policy, powerd execute it [21:56] as we discussed during that previous call, we need someone that is already handling the input events to handle that power button [21:56] thats the decision we had made [21:56] and communicate with the system to let it suspend/resume [21:56] yeah [21:57] or in this case, the other way around... powerd executes the policy by asking the shell (Mir) to blank the screen [21:57] out via the android impl for DPMS, but all we really need is a screen on/off toggle [21:57] no more [21:57] I don't understand where powerd helps us here, because [21:57] rsalveti: do you know if a basic HAL interface for this? [21:57] * ricmm looks [21:57] right, but powerd is not the one listening for the power input events [21:58] the shell, needs to make the policy decision (no one else should see all the input events) [21:58] at least it shouldn't be [21:58] but, then if the shell uses powerd for the mechanism [21:58] mir in turn needs to respond to the screen turning off (explicitly, or through error conditions I guess) [21:58] powerd will work the idle timeout [21:58] i.e. stop the compositor, stop handing out buffers [21:58] etc [21:58] the shell will work the power button and ask powerd if it should suspend [21:58] so why not just have mir turn off the screen [21:58] For powerd to work the idle timeout [21:59] racarr: i think they are saying the shell should own that policy [21:59] how will that work? i.e. it sees the stream of all input events? [21:59] Or does unity send it an event like "idle" [21:59] for making decisions about whether or not to actually blank the screeen [21:59] who is handling all the input, mir, right? [21:59] want to jump in a hangout? [21:59] Yes [21:59] one thing ins handling the power button input [21:59] https://plus.google.com/hangouts/_/f4a766e9a7fc27ef894ab5ac8235856049fc75ab [21:59] the other is the timeout [22:00] kgunn: I am interpreting the opposite XD [22:19] Thanks :) will give screen blanking a shot in 10-15 min [23:01] racarr, in src/server/shell/default_focus_mechanism.cpp, there is a reference held to the currently focussed surface that is never cleared until another surface has focus. Do you see any issues there if the surface is destroyed? [23:02] robert_ancell: Yes. That's the second part of the stress test race [23:02] robert_ancell: I tried to fix it with session-transactions but need to come up with another solution I guess [23:02] racarr, do you have a branch that fixes that specific part of the code? Because I'm modifying that code to support dropping focus on vt switch [23:02] ah [23:02] I think it may be resolvable with a weak reference [23:03] plus the appropriate logic when lock fails [23:03] or the other idea I had was a different approach to session transactions hwere consumers of the surfacers in the shell store [23:03] mf::SurfaceId and there is an api like [23:03] session->with_surface_do(SurfaceId, [&](msh::Surface& surface) { stuff }) [23:04] I think it is the cause of some of the phone crashes gerry is seeing so I am taking it on after DPMS [23:04] Screen blanking is blocking mir on phone though, so I am taking a minor diversion from GBM DPMS to hopefully quite quickly implement android screen blanking XD [23:05] robert_ancell: the thing is the surface will still be destroyed or whatever but exceptions may throw when you try to use it because the underlying surface is gone [23:05] right [23:05] there is another race in the same section of code [23:05] auto surface = focus_session->default_surface(); [23:05] racarr, is there an easy way to detect that without just ignoring exceptions when accessing it? [23:06] Then a few lines later: surface->raise(surface_controller); [23:06] but the underlying surface could be destroyed [23:06] robert_ancell: Not really because without some sort of lock it can always happen inbetween [23:06] your detection and operations [23:07] so you need some way to do things atomically. [23:07] I guess a weak_ptr is not enough. [23:07] I like with_surface_do sort of. but im not sure it will land [23:07] let me figure out why session-transactions was rejected I dont remember [23:08] ok the recursive mutex. [23:09] hmm [23:10] the problem is, the idea is with_surface_do or do_transaction or whatever is that it holds a lock on the session that prevents destroy_surface, etc from running during the body of your function [23:10] but then certainly the body of the function should be able to call these methods [23:10] so you need a recursive mutex. [23:13] robert_ancell: Ok I have an idea [23:14] the focus mechanism needs to track the last surface, so it can unfocus it when a new surface takes focus [23:14] so...um... [23:14] another way to do that? XD not sure what the pattern is [23:16] err, nvm I thought myself in a circle [23:17] I was thinking about, passing out token objects to the surfaces [23:17] that know how to generate unfocus events when they are destroyed [23:17] but it doesnt seem to make sense [23:21] Maybe the transaction API, but just don't use a recursive mutex [23:21] and make it clear that calling session functions in the body of this is a deadlock [23:21] with some API like [23:22] session->do_with_surface_while_freezing_requests(mf::SurfaceId, std::function)... [23:23] racarr, but what do we do when the last surface is removed and then we try and access it afterwards? [23:24] Mm [23:24] Ok maybe remove the SurfaceId from the API and the session tracks [23:24] its last focused surface (as the default_surface I guess) [23:24] and there is API like [23:24] session->with_default_surface_do [23:24] std::function [23:29] I need to run some errands. Back in ~1 hour