• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

awesomeWM / awesome / 4410
93%

Build:
DEFAULT BRANCH: master
Ran 07 Oct 2017 04:29PM UTC
Jobs 1
Files 342
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4410

push

travis-ci

blueyed
Use memory shorter with awful.client.shape (#2051)

To apply the shape of a client, we have to create an image and draw the
shape we want to it. Since clients can be quite large, we have to make
sure that we do not keep this image alive unnecessarily long.

The code in awful.client.shape.get_transformed() however needs another
temporary surface in case the client has its own shape and another one
was set in Lua (side note: currently the code also creates this extra
temporary surface if the client does not have its own shape; that might
be worth fixing). This temporary surface is then used as the source of a
cairo context to draw it to the image that will be used as the client's
final source.

After we are done, the temporary surface is still kept alive since it is
the current source of the cairo context. The cairo context in turn is
only freed when Lua's garbage collector collects it, which may take
quite a while.

Improve this by setting a different source to the cairo context. Thus,
it now releases the temporary surface as soon as possible and it is only
allocated for a short time.

Fixes: https://github.com/awesomeWM/awesome/issues/2050
Signed-off-by: Uli Schlachter <psychon@znc.in>

17371 of 20524 relevant lines covered (84.64%)

1439.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4410.1 (LUA=5.2 LUANAME=lua5.2 DO_COVERAGE=coveralls) 07 Oct 2017 04:29PM UTC 0
84.64
Travis Job 4410.1
Source Files on build 4410
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4410
  • 7e395e7b on github
  • Prev Build on master (#4409)
  • Next Build on master (#4421)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc