Fix some comments

* drm_lease.c:
* subcompositor.c (ViewUnparent):
* xdata.c (NoticeTransferWritable): Remove obsolete TODO
comments.
This commit is contained in:
hujianwei 2022-11-14 01:12:49 +00:00
parent 30f22613b8
commit ecac908923
3 changed files with 2 additions and 7 deletions

View file

@ -50,8 +50,6 @@ along with 12to11. If not, see <https://www.gnu.org/licenses/>. */
named "outputs". This file uses a mix of both the the X
terminology and the KMS/DRM terminology. */
/* TODO: dynamic output updating. */
typedef struct _DrmLeaseDevice DrmLeaseDevice;
typedef struct _DrmLeaseDeviceRef DrmLeaseDeviceRef;
typedef struct _DrmLeaseConnector DrmLeaseConnector;

View file

@ -1244,9 +1244,7 @@ ViewUnparent (View *child)
ViewRecomputeChildren (child, NULL);
/* Now that the view hierarchy has been changed, garbage the
subcompositor. TODO: an optimization for removing views would be
to damage each intersecting view before child->link instead, if
view bounds did not change. */
subcompositor. */
if (child->subcompositor)
{
/* Update the bounds of the subcompositor. */

View file

@ -445,8 +445,7 @@ NoticeTransferWritable (int fd, void *data, WriteFd *writefd)
transfer = data;
info = GetTransferData (transfer);
/* Start by reading at most this many bytes from the property.
TODO: take into account sizeof (long) == 8. */
/* Start by reading at most this many bytes from the property. */
quantum = SelectionQuantum () / 4 * 4;
if (!info->chunk)