Commit Graph

164 Commits

Author SHA1 Message Date
fb8d855ec9 code: create voidCast() util function 2020-06-16 20:54:05 +02:00
48ea771310 transactions: save and render subsurface buffers 2020-06-09 23:13:14 +02:00
052c8e1dcb transactions: handle preemption take 2
This implementation is far simpler than c0d7e71 as it takes advantage of
wlroots's tracking of pending state.

Additionally, we now send frame done events if a view that we are
configuring commits with the wrong dimensions. This is necessary in
order to trigger a redraw for some clients as well as being a more
correct implementation of the protocol.
2020-06-09 20:06:30 +02:00
24b1a566de transactions: revert c0d7e71 2020-06-09 17:04:38 +02:00
7c094420ed transactions: propogate x/y of new box if needed 2020-06-08 14:11:52 +02:00
5f2aa02132 transactions: set timeout back to 200ms
The change to 1000ms was an accident
2020-06-08 01:16:15 +02:00
c0d7e71ec4 transactions: handle preemption properly
when a transaction interrupts an ongoing transaction, we must be careful
to handle the configures properly. This commit adds a new member to view
so that we can store the dimensions sent with the last configure in
order to determine if the preempting transaction should override the
ongoing configure or not.

Additionally, some views do not ack a configure if they already have the
requested dimensions. This can happen if a pending configure setting
alternative dimensions is overridden, so in this case we do not wait for
an ack before committing the transaction.
2020-06-08 00:10:30 +02:00
7b1e07d3d5 code: remove dead code 2020-06-07 19:40:19 +02:00
a63fb461ba river-status: send view_tags on view map/unmap 2020-06-05 00:24:46 +02:00
5aa7fe8af8 river-status: implement protocol 2020-06-04 16:56:58 +02:00
03fc51d8d6 Eliminate some magic numbers 2020-06-02 17:02:03 +02:00
9856bc92ec Clean up some memory leaks 2020-06-02 13:45:56 +02:00
eaf13f3bcf Don't recreate transaction timer unnecessarily 2020-06-02 00:18:28 +02:00
939beef168 Split river and riverctl directories 2020-06-01 15:56:50 +02:00