fix crashing and remove useless option which caused the crashing
This commit is contained in:
parent
ef21fb9fa9
commit
fbba2f4fec
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue