Commit message (Expand) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | added ban() which takes care than a banned window is not banned again... (thi... | Anselm R. Garbe | 2007-02-14 | 1 | -1/+1 | |
* | made for/if/else constructs more consistent, some code polishing | Anselm R. Garbe | 2007-02-14 | 1 | -6/+6 | |
* | made configurerequest more tidy | Anselm R. Garbe | 2007-02-14 | 1 | -5/+10 | |
* | I didn't knew of c->isfixed, that should fix Jukkas issue with gkrellm ;) | Anselm R. Garbe | 2007-02-13 | 1 | -6/+8 | |
* | stupid me, one needs to set c->{x,y,w,h} in configurerequest obviously ;) | Anselm R. Garbe | 2007-02-13 | 1 | -16/+20 | |
* | simplified configurerequest | Anselm R. Garbe | 2007-02-13 | 1 | -35/+16 | |
* | I don't see any reason why we should select for input on override-redirect wi... | Anselm R. Garbe | 2007-02-12 | 1 | -4/+1 | |
* | removing all EnterNotifys after resize | Anselm R. Garbe | 2007-02-12 | 1 | -0/+1 | |
* | added pointer warp on drop in resize | Anselm R. Garbe | 2007-02-12 | 1 | -0/+2 | |
* | replaced getproto with a saner function, now old-school artifacts of WM times... | Anselm R. Garbe | 2007-02-07 | 1 | -4/+0 | |
* | renamed activescreen into selscreen 3.2 | Anselm R. Garbe | 2007-01-23 | 1 | -2/+2 | |
* | small changes | Anselm R. Garbe | 2007-01-23 | 1 | -2/+2 | |
* | I think this is the best solution of multihead support | Anselm R. Garbe | 2007-01-23 | 1 | -1/+1 | |
* | this variant is known to work, but focus() is ugly - we need in general a bet... | Anselm R. Garbe | 2007-01-22 | 1 | -1/+1 | |
* | applied Sanders all5.patch (thanks for your weekend session, Sander!) | Anselm R. Garbe | 2007-01-22 | 1 | -26/+24 | |
* | leavenotify also don't needs the check | Anselm R. Garbe | 2007-01-19 | 1 | -5/+2 | |
* | deciding for focus(NULL); | Anselm R. Garbe | 2007-01-19 | 1 | -2/+2 | |
* | replaced XSetBorder.../focus() | Anselm R. Garbe | 2007-01-19 | 1 | -1/+1 | |
* | yet another multihead fix by Christof Musik | Anselm R. Garbe | 2007-01-19 | 1 | -0/+2 | |
* | applied a modified version of Christof Musik's multihead patch (though this i... | Anselm R. Garbe | 2007-01-18 | 1 | -1/+4 | |
* | Jukka, thanks for being faster than me! | Anselm R. Garbe | 2007-01-15 | 1 | -1/+0 | |
* | removed drawclient and drawall (they performed useless operations/consumed us... | Anselm R. Garbe | 2007-01-15 | 1 | -5/+3 | |
* | removed client title bar | Anselm R. Garbe | 2007-01-14 | 1 | -5/+2 | |
* | added comment to %u in config.default.h, added Button{4.5} support on mode label | Anselm R. Garbe | 2007-01-10 | 1 | -2/+14 | |
* | renamed drawtitle into drawclient | Anselm R. Garbe | 2007-01-04 | 1 | -2/+2 | |
* | corrections | arg@mig29 | 2007-01-02 | 1 | -1/+1 | |
* | next version will contain updated copyright notice | arg@mig29 | 2007-01-02 | 1 | -1/+1 | |
* | renamed updatesize into updatesizehints (thx to Sander for this hint) | arg@mig29 | 2007-01-01 | 1 | -1/+1 | |
* | removed gravitate for the moment | arg@mig29 | 2006-12-11 | 1 | -2/+0 | |
* | applied Alex Elide's tricky patch, thanks! | arg@mig29 | 2006-11-27 | 1 | -1/+0 | |
* | returning to old Key struct | arg@mig29 | 2006-11-27 | 1 | -5/+4 | |
* | changing Key.func into Key.func[NFUNCS], this allows sequences execution of f... | arg@mig29 | 2006-11-27 | 1 | -4/+5 | |
* | applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line print... | arg@mig29 | 2006-11-26 | 1 | -2/+2 | |
* | applied Gottox' windowarea patch | arg@mig29 | 2006-11-16 | 1 | -8/+8 | |
* | make sure that changing sx has no impact on snapping 2.0 | arg@mig29 | 2006-10-31 | 1 | -1/+1 | |
* | fixed stupid bug of snap-to-screen | arg@mig29 | 2006-10-30 | 1 | -4/+4 | |
* | changing snap priority | arg@mig29 | 2006-10-30 | 1 | -3/+3 | |
* | removed useless abs() calls | arg@mig29 | 2006-10-30 | 1 | -2/+2 | |
* | added screen-border snapping in floating mode, feels quite well | arg@mig29 | 2006-10-30 | 1 | -0/+8 | |
* | and another fix | arg@mig29 | 2006-10-27 | 1 | -1/+2 | |
* | applied sanders try2 patch | arg@mig29 | 2006-10-27 | 1 | -1/+1 | |
* | moved MOUSEMASK into event.c (not used in other places) | Anselm R. Garbe | 2006-10-16 | 1 | -0/+1 | |
* | do* has no Arg arument anymore (never called directly) 1.9 | Anselm R. Garbe | 2006-10-06 | 1 | -2/+2 | |
* | code polishing, removed unnecessary newlines | Anselm R. Garbe | 2006-10-06 | 1 | -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() |