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

awesomeWM / awesome / 3648
93%

Build:
DEFAULT BRANCH: master
Ran 18 Apr 2017 12:49PM UTC
Jobs 1
Files 302
Run time 15s
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
3648

push

travis-ci

blueyed
Stop grabbing mouse buttons on frame windows (#1724)

I failed to see the obvious. Thanks to mlen from IRC to make
me look into i3's source code so that I can figure out the obvious.

First, what is the problem? We want to be informed about mouse clicks on
client windows, e.g. for client-to-focus. For this we have to grab mouse
buttons on the client window, since only a single client at a time can
ask for information about all mouse clicks (I think...) and that right
is reserved for the actual application and not the WM.

We also want to be informed about mouse clicks on the titlebar, so that
clicking there actually does something (and also e.g. click-to-focus).
Obviously, we can just grab mouse buttons on the titlebar as well.

However, this causes lots of problems. The X11 window containing the
titlebar is not just the size of the titlebar, but also includes all of
the actual client window. This means that clicking into the client also
activates our button grab on the titlebar. This, in turn, causes the
input focus to briefly shift to the window for the titlebar. This shift
of focus can be detected by clients and caused various issues.

This fix is so obvious that I missed it. We don't have to grab buttons
on the titlebar window. We can just use the "normal" event propagation
without grabs there, i.e. we just include the event masks for button
press and button release and get informed about all mouse events. In
fact, we already have this event mask in place, so the whole use of
grabs is redundant.

That's what this commit does. It also partially reverts commit
394ff06589676c which is where this unnecessary grabbing was introduced.

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

15316 of 18754 relevant lines covered (81.67%)

1028.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3648.1 (LUA=5.2 LUANAME=lua5.2 DO_COVERAGE=coveralls) 18 Apr 2017 12:49PM UTC 0
81.67
Travis Job 3648.1
Source Files on build 3648
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3648
  • f290ea8b on github
  • Prev Build on master (#3647)
  • Next Build on master (#3649)
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