Commit Graph

89 Commits

Author SHA1 Message Date
Sasha Koshka
ae514f5ae2 Add proper and reliable (i hope) support for modifier keys 2022-11-22 00:21:35 -05:00
Sasha Koshka
8c28c57925 Support for meta and hyper keys added
Support for the compose key has also been added but it's just the
button code for now, no support for actually composing stuff.
There are plans for that in a fixme.
2022-11-21 23:43:22 -05:00
9a37fbf04a Updated examples and added more documentation 2022-11-19 18:00:47 -05:00
9a8bb85afc Replaced orange with a dim/grey color 2022-11-18 19:46:50 -05:00
f55f98651f It needed more blackjack and hookers to work correctly 2022-11-17 23:16:47 -05:00
3cb0ac64fc I made my own draw method with blackjack and hookers 2022-11-17 21:19:23 -05:00
594d1d07be Merge pull request 'Compress mouse scroll and motion events' (#4) from compress-scroll into main
Reviewed-on: #4
2022-11-18 01:32:35 +00:00
75200a7310 Mouse scroll events are properly compressed and summed up 2022-11-17 19:23:39 -05:00
c57c8acba7 Changed the API for scrolling 2022-11-17 19:11:49 -05:00
43696543d8 Compress motion notify events 2022-11-17 19:01:16 -05:00
19b744250f Merge pull request '(Mostly) under the hoood improvements' (#3) from fix-x-concurrency into main
Reviewed-on: #3
2022-11-17 18:33:36 +00:00
d6280a0d28 Added two new styles (although no style has been implemented) 2022-11-17 11:25:27 -05:00
51fbd8acef Added more efficient damage buffer method 2022-11-17 00:26:28 -05:00
754017a2db Added Buffer interface, and clear method 2022-11-16 21:20:48 -05:00
0ee58d22f6 Made centering the buffer in the window optional
It causes jitter while resizing in floating wms
2022-11-16 11:31:35 -05:00
81a0c60943 Added simpler method of detecting window bounds change on draw 2022-11-16 11:14:30 -05:00
cab280a371 Removed the need for a quit handler 2022-11-16 11:08:30 -05:00
e030f8632b Overhauled event system 2022-11-16 00:29:23 -05:00
3a3fb66db8 Buffer is thread safe 2022-11-15 17:45:48 -05:00
85994112cf Made buffer's dot private 2022-11-15 17:41:08 -05:00
77cf88b856 There is only one type of buffer now 2022-11-15 17:36:41 -05:00
abc9945ea1 Configuration values are now loaded from files
Stone will load from /etc/stone/stone.conf and ~/.config/stone/stone.conf
2022-11-15 13:43:21 -05:00
02d010818f Fix possible segfault in X backend 2022-11-15 11:40:10 -05:00
1eceb53b94 Added fun color example 2022-11-15 11:29:45 -05:00
de3e4b528b Redid color system 2022-11-15 11:16:29 -05:00
100e72fada Added license 2022-11-15 00:27:30 -05:00
c0d85cda5b Added documentation 2022-11-15 00:22:01 -05:00
2986c8fd03 Merge pull request 'x-backend' (#2) from x-backend into main
Reviewed-on: #2
2022-11-15 04:40:24 +00:00
6b251e6fee Position buffer in center of screen 2022-11-14 23:38:41 -05:00
79d8891c5b Added some stuff to draw debug bounding boxes 2022-11-14 23:32:05 -05:00
d9c9895e82 Fixed mouse buttons 2022-11-14 23:17:10 -05:00
1d71df180d Changed how buttons are stored in press and release events 2022-11-14 23:15:21 -05:00
b816a4abf5 Added a Printable method to button 2022-11-14 23:09:31 -05:00
c6c7383ef2 Fixed advance keycode translation 2022-11-14 22:58:44 -05:00
84cd21b16d Added untested advanced keycode translation 2022-11-14 22:33:46 -05:00
820c7d4f6a Made separate function for converting keycode to keysym 2022-11-14 15:58:34 -05:00
aee4158d2d Added keyboard input 2022-11-13 23:47:35 -05:00
82caf1efd8 Split X backend into multiple files 2022-11-13 22:44:19 -05:00
872b36d172 Added text input example (non-working) 2022-11-13 22:28:44 -05:00
7dde0ad5a3 Redid button codes 2022-11-13 17:35:37 -05:00
5a0e0cd49b Set minimum window dimensions 2022-11-13 15:39:33 -05:00
636e5ce7e7 Sus. Sus amongus.
amoogoos.
2022-11-12 22:43:36 -05:00
a68790d342 Merge branch 'x-backend' of git.tebibyte.media:sashakoshka/stone into x-backend 2022-11-12 19:04:37 -05:00
48510db209 Added mouse button press input 2022-11-12 19:02:24 -05:00
f02eb348ea Add info about X backend to readme 2022-11-12 17:40:08 +00:00
47ee6545cb X backend only sends what it needs to 2022-11-11 23:46:46 -05:00
e4f97a918a Application must now manually call application.Draw in all cases
This behavior is way more consistent, and it makes the drawing code
a bit simpler.
2022-11-11 23:24:20 -05:00
c865f7146a Buffer is now reallocated on window size change 2022-11-11 22:46:07 -05:00
05c448f058 Applications can now manually call a screen redraw in a way that I think is thread safe 2022-11-11 22:30:59 -05:00
ea32b7899b Remove pixel backend 2022-11-11 20:27:51 -05:00