what did i do here?
This commit is contained in:
parent
d094f4e241
commit
0c55cfb292
1 changed files with 4 additions and 2 deletions
|
|
@ -541,8 +541,6 @@ void loop_x(void) {
|
||||||
XAllowEvents(xdisplay, ReplayPointer, CurrentTime);
|
XAllowEvents(xdisplay, ReplayPointer, CurrentTime);
|
||||||
} else if(ev.type == FocusIn && ev.xfocus.window != focus) {
|
} else if(ev.type == FocusIn && ev.xfocus.window != focus) {
|
||||||
set_focus(focus);
|
set_focus(focus);
|
||||||
} else if(ev.type == FocusOut && focus != None) {
|
|
||||||
set_focus(focus);
|
|
||||||
} else if(ev.type == ConfigureRequest) {
|
} else if(ev.type == ConfigureRequest) {
|
||||||
XWindowChanges xwc;
|
XWindowChanges xwc;
|
||||||
int i;
|
int i;
|
||||||
|
|
@ -663,6 +661,9 @@ void loop_x(void) {
|
||||||
if(ret) continue;
|
if(ret) continue;
|
||||||
if(i != arrlen(windows)) {
|
if(i != arrlen(windows)) {
|
||||||
XWindowAttributes xwa;
|
XWindowAttributes xwa;
|
||||||
|
int rev;
|
||||||
|
Window cfocus;
|
||||||
|
|
||||||
if(!XGetWindowAttributes(xdisplay, windows[i].client, &xwa)) {
|
if(!XGetWindowAttributes(xdisplay, windows[i].client, &xwa)) {
|
||||||
wm_destroy(windows[i].frame);
|
wm_destroy(windows[i].frame);
|
||||||
arrdel(windows, i);
|
arrdel(windows, i);
|
||||||
|
|
@ -699,6 +700,7 @@ void loop_x(void) {
|
||||||
}
|
}
|
||||||
XUngrabServer(xdisplay);
|
XUngrabServer(xdisplay);
|
||||||
XMapWindow(xdisplay, windows[i].client);
|
XMapWindow(xdisplay, windows[i].client);
|
||||||
|
|
||||||
set_focus(windows[i].client);
|
set_focus(windows[i].client);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue