Client/Event: Fix focus issue & client manual moving to next screen segfault
This commit is contained in:
parent
a3a2f33ddf
commit
a7371e9445
@ -758,7 +758,7 @@ client_manage(Window w, XWindowAttributes *wa, bool ar)
|
||||
tags[c->screen][c->tag].flags |= CleanFactFlag;
|
||||
cfactor_clean(c);
|
||||
|
||||
at.event_mask = PropertyChangeMask;
|
||||
at.event_mask = EnterWindowMask | LeaveWindowMask | StructureNotifyMask | PropertyChangeMask;
|
||||
|
||||
frame_create(c);
|
||||
client_size_hints(c);
|
||||
|
||||
@ -119,7 +119,7 @@ buttonpress(XEvent *e)
|
||||
if(ib->tags_board)
|
||||
{
|
||||
for(i = 1; i < conf.ntag[selscreen] + 1; ++i)
|
||||
if(ev->window == ib->tags[i]->win)
|
||||
if(ib->tags[i] && ev->window == ib->tags[i]->win)
|
||||
{
|
||||
do_mousebind(selscreen, ev->button, tags[selscreen][i].nmouse, tags[selscreen][i].mouse);
|
||||
|
||||
|
||||
@ -59,6 +59,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/cursorfont.h>
|
||||
|
||||
/* Optional dependencies */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user