about summary refs log tree commit diff stats
path: root/event.c
Commit message (Expand)AuthorAgeFilesLines
...
* added ban() which takes care than a banned window is not banned again... (thi...Anselm R. Garbe2007-02-141-1/+1
* made for/if/else constructs more consistent, some code polishingAnselm R. Garbe2007-02-141-6/+6
* made configurerequest more tidyAnselm R. Garbe2007-02-141-5/+10
* I didn't knew of c->isfixed, that should fix Jukkas issue with gkrellm ;)Anselm R. Garbe2007-02-131-6/+8
* stupid me, one needs to set c->{x,y,w,h} in configurerequest obviously ;)Anselm R. Garbe2007-02-131-16/+20
* simplified configurerequestAnselm R. Garbe2007-02-131-35/+16
* I don't see any reason why we should select for input on override-redirect wi...Anselm R. Garbe2007-02-121-4/+1
* removing all EnterNotifys after resizeAnselm R. Garbe2007-02-121-0/+1
* added pointer warp on drop in resizeAnselm R. Garbe2007-02-121-0/+2
* replaced getproto with a saner function, now old-school artifacts of WM times...Anselm R. Garbe2007-02-071-4/+0
* renamed activescreen into selscreen 3.2Anselm R. Garbe2007-01-231-2/+2
* small changesAnselm R. Garbe2007-01-231-2/+2
* I think this is the best solution of multihead supportAnselm R. Garbe2007-01-231-1/+1
* this variant is known to work, but focus() is ugly - we need in general a bet...Anselm R. Garbe2007-01-221-1/+1
* applied Sanders all5.patch (thanks for your weekend session, Sander!)Anselm R. Garbe2007-01-221-26/+24
* leavenotify also don't needs the checkAnselm R. Garbe2007-01-191-5/+2
* deciding for focus(NULL);Anselm R. Garbe2007-01-191-2/+2
* replaced XSetBorder.../focus()Anselm R. Garbe2007-01-191-1/+1
* yet another multihead fix by Christof MusikAnselm R. Garbe2007-01-191-0/+2
* applied a modified version of Christof Musik's multihead patch (though this i...Anselm R. Garbe2007-01-181-1/+4
* Jukka, thanks for being faster than me!Anselm R. Garbe2007-01-151-1/+0
* removed drawclient and drawall (they performed useless operations/consumed us...Anselm R. Garbe2007-01-151-5/+3
* removed client title barAnselm R. Garbe2007-01-141-5/+2
* added comment to %u in config.default.h, added Button{4.5} support on mode labelAnselm R. Garbe2007-01-101-2/+14
* renamed drawtitle into drawclientAnselm R. Garbe2007-01-041-2/+2
* correctionsarg@mig292007-01-021-1/+1
* next version will contain updated copyright noticearg@mig292007-01-021-1/+1
* renamed updatesize into updatesizehints (thx to Sander for this hint)arg@mig292007-01-011-1/+1
* removed gravitate for the momentarg@mig292006-12-111-2/+0
* applied Alex Elide's tricky patch, thanks!arg@mig292006-11-271-1/+0
* returning to old Key structarg@mig292006-11-271-5/+4
* changing Key.func into Key.func[NFUNCS], this allows sequences execution of f...arg@mig292006-11-271-4/+5
* applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line print...arg@mig292006-11-261-2/+2
* applied Gottox' windowarea patcharg@mig292006-11-161-8/+8
* make sure that changing sx has no impact on snapping 2.0arg@mig292006-10-311-1/+1
* fixed stupid bug of snap-to-screenarg@mig292006-10-301-4/+4
* changing snap priorityarg@mig292006-10-301-3/+3
* removed useless abs() callsarg@mig292006-10-301-2/+2
* added screen-border snapping in floating mode, feels quite wellarg@mig292006-10-301-0/+8
* and another fixarg@mig292006-10-271-1/+2
* applied sanders try2 patcharg@mig292006-10-271-1/+1
* moved MOUSEMASK into event.c (not used in other places)Anselm R. Garbe2006-10-161-0/+1
* do* has no Arg arument anymore (never called directly) 1.9Anselm R. Garbe2006-10-061-2/+2
* code polishing, removed unnecessary newlinesAnselm R. Garbe2006-10-061-7/+2(4, d.right()) self.assertEqual(7, d.down()) self.assertEqual(-4, d.left()) self.assertEqual(-7, d.up()) self.assertEqual(True, d.relative()) self.assertEqual(False, d.absolute()) self.assertTrue(d.horizontal()) self.assertTrue(d.vertical()) subtest(d1) subtest(d2) def test_conflicts(self): d3 = Direction(right=5, left=2, up=3, down=6, absolute=True, relative=True) self.assertEqual(d3.right(), -d3.left()) self.assertEqual(d3.left(), -d3.right()) self.assertEqual(d3.up(), -d3.down()) self.assertEqual(d3.down(), -d3.up()) self.assertEqual(d3.absolute(), not d3.relative()) self.assertEqual(d3.relative(), not d3.absolute()) def test_copy(self): d = Direction(right=5) c = d.copy() self.assertEqual(c.right(), d.right()) d['right'] += 3 self.assertNotEqual(c.right(), d.right()) c['right'] += 3 self.assertEqual(c.right(), d.right()) self.assertFalse(d.vertical()) self.assertTrue(d.horizontal()) # Doesn't work in python2? # def test_duck_typing(self): # dct = dict(right=7, down=-3) # self.assertEqual(-7, Direction.left(dct)) # self.assertEqual(3, Direction.up(dct)) def test_move(self): d = Direction(pages=True) self.assertEqual(3, d.move(direction=3)) self.assertEqual(5, d.move(direction=3, current=2)) self.assertEqual(15, d.move(direction=3, pagesize=5)) self.assertEqual(9, d.move(direction=3, pagesize=5, maximum=10)) self.assertEqual(18, d.move(direction=9, override=2)) d2 = Direction(absolute=True) self.assertEqual(5, d2.move(direction=9, override=5)) def test_select(self): d = Direction(down=3) lst = list(range(100)) self.assertEqual((6, [3,4,5]), d.select(current=3, pagesize=10, override=None, lst=lst)) d = Direction(down=3, pages=True) self.assertEqual((9, [3,4,5,6,7,8]), d.select(current=3, pagesize=2, override=None, lst=lst)) if __name__ == '__main__': unittest.main()