Re: [dev] [dwm] closing focused master window may move focus (unexpectedly) to stacked window
On Tue, Mar 13, 2018 at 09:52:38AM +0100, hp.g wrote: > situation: > > I have 3 windows open (1 on the left as master, 2 on the right, vertically > arranged as stacked window) > like so: > > - > |A |B | > | > ||C | > - > > I then do the following: > 1. I focus C, then A (without windows rearrangement) > 2. I close A >--> then B will get master >--> However, the focus will be on C, i.e. on a stacked window > > I would expect the have to focus on B (now master), after I've closed the > focused A (previous master) > > This seems to be the case because before A, C was focused (and not B). > If B is in focus before I move the focus to A and close it, then B will be > focused after closing A - as I would expect. > > Not sure, whether this observed behavior is intended or whether it is a bug; > anyway it irritates (at least) me greatly, because I would expect: > - if the focus is on master and I close that master then > - the new master should have the focus in any case > > What do you think? > > Regards > Hp. > > Hi, It's not a bug and has worked this way for a long time. Thanks, -- Kind regards, Hiltjo
Re: [dev] [dwm] closing focused master window may move focus (unexpectedly) to stacked window
Hi On Tue, Mar 13, 2018 at 9:52 AM, hp.g wrote: > Not sure, whether this observed behavior is intended or whether it is a bug; > anyway it irritates (at least) me greatly, because I would expect: > - if the focus is on master and I close that master then > - the new master should have the focus in any case > > What do you think? The current behaviour is consistent. The window that had focus before the one that is closed gets back focus (regardless of whether the window is now in the master area or not). To me this behaviour seems desirable. That could be because for me it seems to be easier to reason about which window I focused before the closed one than about which window will be the master after I close the current one. Cheers, Silvan
[dev] [dwm] closing focused master window may move focus (unexpectedly) to stacked window
situation: I have 3 windows open (1 on the left as master, 2 on the right, vertically arranged as stacked window) like so: - |A |B | | ||C | - I then do the following: 1. I focus C, then A (without windows rearrangement) 2. I close A --> then B will get master --> However, the focus will be on C, i.e. on a stacked window I would expect the have to focus on B (now master), after I've closed the focused A (previous master) This seems to be the case because before A, C was focused (and not B). If B is in focus before I move the focus to A and close it, then B will be focused after closing A - as I would expect. Not sure, whether this observed behavior is intended or whether it is a bug; anyway it irritates (at least) me greatly, because I would expect: - if the focus is on master and I close that master then - the new master should have the focus in any case What do you think? Regards Hp.