this is what xev gave me:
Outer window is 0x3600001, inner window is 0x3600002
PropertyNotify event, serial 8, synthetic NO, window 0x3600001,
atom 0x27 (WM_NAME), time 1282497, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0x3600001,
atom 0x22 (WM_COMMAND), time 1282497, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0x3600001,
atom 0x28 (WM_NORMAL_HINTS), time 1282497, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0x3600001,
parent 0x3600001, window 0x3600002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0x3600001,
atom 0x160 (WM_PROTOCOLS), time 1282498, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0x3600001,
event 0x3600001, window 0x3600002, override NO
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x16e (_NET_WM_STATE), time 1282499, state PropertyNewValue
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x168 (_NET_WM_DESKTOP), time 1282499, state PropertyNewValue
ConfigureNotify event, serial 21, synthetic NO, window 0x3600001,
event 0x3600001, window 0x3600001, (0,0), width 178, height 178,
border_width 0, above 0x1a0025e, override NO
ReparentNotify event, serial 21, synthetic NO, window 0x3600001,
event 0x3600001, window 0x3600001, parent 0x1423e04,
(5,29), override NO
ConfigureNotify event, serial 21, synthetic NO, window 0x3600001,
event 0x3600001, window 0x3600001, (5,29), width 178, height 178,
border_width 0, above 0x1423e13, override NO
ConfigureNotify event, serial 21, synthetic YES, window 0x3600001,
event 0x3600001, window 0x3600001, (594,320), width 178, height 178,
border_width 0, above 0x0, override NO
MapNotify event, serial 21, synthetic NO, window 0x3600001,
event 0x3600001, window 0x3600001, override NO
VisibilityNotify event, serial 21, synthetic NO, window 0x3600001,
state VisibilityUnobscured
Expose event, serial 21, synthetic NO, window 0x3600001,
(0,0), width 178, height 10, count 3
Expose event, serial 21, synthetic NO, window 0x3600001,
(0,10), width 10, height 58, count 2
Expose event, serial 21, synthetic NO, window 0x3600001,
(68,10), width 110, height 58, count 1
Expose event, serial 21, synthetic NO, window 0x3600001,
(0,68), width 178, height 110, count 0
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x194 (WM_STATE), time 1282502, state PropertyNewValue
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x1c9 (_NET_WM_ALLOWED_ACTIONS), time 1282502, state PropertyNewValue
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x16e (_NET_WM_STATE), time 1282502, state PropertyNewValue
FocusIn event, serial 21, synthetic NO, window 0x3600001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 21, synthetic NO, window 0x0,
keys: 4294967181 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x165 (_NET_FRAME_EXTENTS), time 1282502, state PropertyNewValue
PropertyNotify event, serial 21, synthetic NO, window 0x3600001,
atom 0x16e (_NET_WM_STATE), time 1282502, state PropertyNewValue
PropertyNotify event, serial 28, synthetic NO, window 0x3600001,
atom 0x16e (_NET_WM_STATE), time 1282503, state PropertyNewValue
KeyRelease event, serial 33, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1282617, (341,135), root:(935,455),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
MappingNotify event, serial 36, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
FocusOut event, serial 36, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 36, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 36, synthetic NO, window 0x0,
keys: 4294967181 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
EnterNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295872, (177,35), root:(771,355),
mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
focus YES, state 0
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295872, (177,35), root:(771,355),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295880, (175,34), root:(769,354),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295888, (173,33), root:(767,353),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295896, (171,33), root:(765,353),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295904, (170,32), root:(764,352),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295912, (167,30), root:(761,350),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295920, (165,30), root:(759,350),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295928, (164,29), root:(758,349),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295936, (162,28), root:(756,348),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295944, (160,27), root:(754,347),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295952, (159,26), root:(753,346),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295960, (158,25), root:(752,345),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295976, (157,24), root:(751,344),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1295992, (156,22), root:(750,342),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296008, (156,21), root:(750,341),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296146, (161,14), root:(755,334),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296154, (163,12), root:(757,332),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296162, (166,10), root:(760,330),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296170, (168,8), root:(762,328),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296178, (169,7), root:(763,327),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296186, (171,6), root:(765,326),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296194, (171,5), root:(765,325),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296202, (172,3), root:(766,323),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296218, (173,2), root:(767,322),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296242, (173,1), root:(767,321),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296258, (173,0), root:(767,320),
state 0x0, is_hint 0, same_screen YES
LeaveNotify event, serial 37, synthetic NO, window 0x3600001,
root 0x19f, subw 0x0, time 1296274, (173,-2), root:(767,318),
mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
focus YES, state 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 4294967199 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 37, synthetic NO, window 0x3600001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 37, synthetic NO, window 0x3600001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ClientMessage event, serial 37, synthetic YES, window 0x3600001,
message_type 0x160 (WM_PROTOCOLS), format 32, message 0x15e (WM_DELETE_WINDOW)
I noticed that
KeymapNotify event, serial 37, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
keeps repeating over and over again, maybe this is the problem? Sorry, i don't understand this all that much