fix crashing and remove useless option which caused the crashing

This commit is contained in:
speedie 2023-01-06 23:28:48 +01:00
parent ef21fb9fa9
commit fbba2f4fec
4 changed files with 1 additions and 9 deletions

View file

@ -193,9 +193,6 @@ speedwm.color.selectedtitle: 0 ! Color the selected title (0/1)
!! Powerline options
speedwm.bar.powerline.tag.shape: 0 ! Shape of the tag powerlines (0: >, 1: /)
!! Focus options
speedwm.focus.spawned: 1 ! Focus the newly spawned window or keep focus (0/1)
!! Fullscreen options
speedwm.fullscreen.hidebar: 1 ! Hide the bar when a client is fullscreened (0/1)
speedwm.fullscreen.lockfullscreen: 1 ! Lock the fullscreen (0/1)

View file

@ -50,7 +50,6 @@ static int swallowfloating = 1; /* Swallow floating windows b
static int centerfloating = 1; /* Center floating windows by default */
static int startontag = 1; /* Start on a tag or not? */
static int floatscratchpad = 0; /* Float the scratchpad window on hide (1/0) */
static int focusspawn = 1; /* Automatically focus the next spawned window. If warp is enabled, this is useless and will be disabled. (1/0) */
/* Client properties */
static int autofocus = 1; /* Allow clients to automatically be focused when they request it. This comes with the side effect of potentially being annoying */

View file

@ -3413,10 +3413,7 @@ manage(Window w, XWindowAttributes *wa)
if (term)
swallow(term, c);
arrange(c->mon);
if (focusspawn)
focus(c);
else
focus(NULL);
focus(NULL);
}
void

View file

@ -162,7 +162,6 @@ ResourcePref resources[] = {
{ "mouse.cfact", INTEGER, &mousecfact },
{ "mouse.warpcursor", INTEGER, &warpcursor },
{ "mouse.clicktofocus", INTEGER, &clicktofocus },
{ "focus.spawned", INTEGER, &focusspawn },
{ "client.floatscratchpad", INTEGER, &floatscratchpad },
{ "client.autofocus", INTEGER, &autofocus },
{ "client.automove", INTEGER, &automove },