2024/08/15

2024-08-15 00:15:55 +0200terrorjack4(~terrorjac@static.163.82.63.178.clients.your-server.de) (Quit: The Lounge - https://thelounge.chat)
2024-08-15 00:19:12 +0200terrorjack4(~terrorjac@static.163.82.63.178.clients.your-server.de)
2024-08-15 01:32:00 +0200user42(~user42@49.228.56.230)
2024-08-15 02:18:46 +0200 <Leary> user42: I think maintaining on-top status means we can't /truly/ ignore it. You'd likely need to write an extension that doesn't actually ignore the window, but just skips focus over it. The best way to do that would be post-<https://github.com/xmonad/xmonad/pull/433>, but I guess you could still do it now.
2024-08-15 02:20:26 +0200 <Leary> That said, you might just want to make it a strut? If it's small, you can put it on the edge of the screen and reserve that space for it.
2024-08-15 02:23:11 +0200 <geekosaur> I think a handleEventHook could do it but you would need to stash the window ID in XS and possibly select for structureNotifyMask
2024-08-15 02:24:55 +0200 <geekosaur> hm, no, structureNotifyMask is the wrong one and I don't think there's a right one for z-position. you'd have to unconditionally raiseWindow
2024-08-15 02:31:38 +0200 <Leary> Oh, yeah, just ignore me. XS + raiseWindow in (current) logHook sounds like it would suffice. I actually think 433 would break that.
2024-08-15 02:46:00 +0200 <geekosaur> I was suggesting handleEventHook, because if it's not managed (and therefore doesn't take focus) then logHook won't fire
2024-08-15 02:46:11 +0200 <geekosaur> with or without 433
2024-08-15 02:51:22 +0200 <user42> geekosaur: Thank you for your replay.  So I should keep the `doIgnore` and then do a `raiseWindow` in an handleEventHook, is that correct?
2024-08-15 02:51:52 +0200 <user42> On which events would I need to do the raiseWindow?
2024-08-15 02:54:20 +0200 <user42> I haven't looked at it yet, but from what I understand from your reply I would also need to save the window ID in some custom state, presumably because I will not have access to it in the `handleEventHook`.
2024-08-15 02:54:52 +0200 <user42> At which point would I need to save the window ID?  In the `manageHook` when I do the `doIgnore`?
2024-08-15 03:01:13 +0200 <geekosaur> all events, since the X server doesn't send any event related to z-order (indicating that the window would need to be raised)
2024-08-15 03:04:16 +0200 <geekosaur> it'd be the manageHook, yes. (className =? "Workrave" --> doIgnore <+> (ask >>= liftX (XS.put . KeepRaised) >> idHook)) or some such, given a type with a constructor KeepRaised (see https://hackage.haskell.org/package/xmonad-contrib-0.18.0/docs/XMonad-Util-ExtensibleState.html)
2024-08-15 03:05:24 +0200 <Leary> logHook will fire after any window z-reordering; isn't that enough?
2024-08-15 03:05:43 +0200 <geekosaur> then the handleEventHook would extract ev_window from the event, compare it to the one in KeepRaised (which you receive with XS.get), and withDisplay (\d -> raiseWindow d w)
2024-08-15 03:05:56 +0200 <geekosaur> only if it's managed
2024-08-15 03:06:26 +0200 <Leary> It doesn't need to be managed, so long as the window that would overlap it is.
2024-08-15 03:06:50 +0200 <geekosaur> right, that _may_ be enough
2024-08-15 03:07:29 +0200 <geekosaur> hm, right, you don't need to check ev_window either since we can't receive events for that window
2024-08-15 03:08:42 +0200 <geekosaur> just unconditionally https://paste.tomsmeding.com/U6qazUdJ, in handleEventHook or logHook
2024-08-15 03:22:20 +0200dysthesis(~dysthesis@user/dysthesis)
2024-08-15 03:23:42 +0200 <user42> geekosaur: Thanks a lot, I'll give this a try.
2024-08-15 04:22:19 +0200td_(~td@i53870918.versanet.de) (Ping timeout: 260 seconds)
2024-08-15 04:23:49 +0200td_(~td@i53870931.versanet.de)
2024-08-15 05:12:27 +0200user42(~user42@49.228.56.230) (Quit: Client closed)
2024-08-15 05:21:05 +0200user42(~user42@49.228.56.230)
2024-08-15 05:22:39 +0200user42(~user42@49.228.56.230) (Client Quit)
2024-08-15 07:49:56 +0200dysthesis(~dysthesis@user/dysthesis) (Ping timeout: 260 seconds)
2024-08-15 07:56:50 +0200dysthesis(~dysthesis@user/dysthesis)
2024-08-15 07:58:31 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752)
2024-08-15 08:01:28 +0200dysthesis(~dysthesis@user/dysthesis) (Remote host closed the connection)
2024-08-15 08:08:30 +0200user42(~user42@49.228.56.230)
2024-08-15 08:46:52 +0200user42(~user42@49.228.56.230) (Quit: Client closed)
2024-08-15 08:55:23 +0200ft(~ft@p4fc2aa15.dip0.t-ipconnect.de) (Quit: leaving)
2024-08-15 09:30:30 +0200julie_pilgrim(~julie_pil@user/julie-pilgrim/x-1240752) (Remote host closed the connection)
2024-08-15 10:12:46 +0200Digitteknohippie(~user@user/digit)
2024-08-15 10:13:22 +0200Digit(~user@user/digit) (Ping timeout: 252 seconds)
2024-08-15 10:19:48 +0200DigitteknohippieDigit
2024-08-15 10:41:42 +0200kalj(~kalj@h-158-174-207-174.NA.cust.bahnhof.se)
2024-08-15 12:08:30 +0200kalj(~kalj@h-158-174-207-174.NA.cust.bahnhof.se) (Quit: Client closed)
2024-08-15 12:58:34 +0200cfricke(~cfricke@user/cfricke)
2024-08-15 13:05:35 +0200wlhn(~wlhn@dl6-5j8gfh1n484fp87pt-3.rev.dnainternet.fi)
2024-08-15 17:50:57 +0200cfricke(~cfricke@user/cfricke) (Ping timeout: 252 seconds)
2024-08-15 18:12:56 +0200cfricke(~cfricke@user/cfricke)
2024-08-15 18:17:07 +0200L29Ah(~L29Ah@wikipedia/L29Ah) (Read error: Connection reset by peer)
2024-08-15 19:10:37 +0200L29Ah(~L29Ah@wikipedia/L29Ah)
2024-08-15 19:15:14 +0200ChubaDuba(~ChubaDuba@176.212.42.92)
2024-08-15 20:08:38 +0200ft(~ft@p4fc2aa15.dip0.t-ipconnect.de)
2024-08-15 20:52:26 +0200haskellbridge(~hackager@syn-024-093-192-219.res.spectrum.com) (Remote host closed the connection)
2024-08-15 20:54:18 +0200haskellbridge(~hackager@syn-024-093-192-219.res.spectrum.com)
2024-08-15 22:12:43 +0200cfricke(~cfricke@user/cfricke) (Quit: WeeChat 4.2.2)
2024-08-15 22:30:03 +0200alethkitkitaleth
2024-08-15 22:57:53 +0200ChubaDuba(~ChubaDuba@176.212.42.92) (Read error: Connection reset by peer)
2024-08-15 23:22:16 +0200Solitary(~Solitary@user/solitary) (Read error: Connection reset by peer)
2024-08-15 23:24:58 +0200wlhn(~wlhn@dl6-5j8gfh1n484fp87pt-3.rev.dnainternet.fi) (Remote host closed the connection)
2024-08-15 23:25:15 +0200wlhn(~wlhn@dl6-5j8gfh1n484fp87pt-3.rev.dnainternet.fi)
2024-08-15 23:25:21 +0200Solitary(~Solitary@user/solitary)
2024-08-15 23:37:58 +0200L29Ah(~L29Ah@wikipedia/L29Ah) ()