Package: openbox
Version: 3.6.1-10
Severity: normal
X-Debbugs-Cc: shitp...@gmail.com

A <mousebind> with buttons W-Up and W-Down are handled by openbox, 
but leak to Chrome/Skype(Electron) apps. 

(I belive that all Electron apps are affected.)

Example configuration snippet:

      <mousebind action="Press" button="W-Up">
        <action name="Execute">
          <command>/bin/sh -c 'compton-trans -c +20'</command>
        </action>
      </mousebind>
      <mousebind action="Press" button="W-Down">
        <action name="Execute">
          <command>/bin/sh -c 'compton-trans -c -20'</command>
        </action>
      </mousebind>

Here I use `compton-trans` to change transparency of 
a focused window using WinKey + mouse wheel. 

The proble is that page Chrome browser or chat in Skype 
receive the wheel event too. 

Althrough I declare the aforementioned snippet in <context name="Frame">.

And, according to documentation events handled in this context,
are not passed to applications.

All other events do not leak, only the ones with mouse wheel.

The same behaviour is obsered with A-Up and A-Down mousebinds.

-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.0custom (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openbox depends on:
ii  libc6                     2.36-9+deb12u1
ii  libglib2.0-0              2.74.6-2
ii  libice6                   2:1.0.10-1
ii  libobrender32v5           3.6.1-10
ii  libobt2v5                 3.6.1-10
ii  libsm6                    2:1.2.3-1
ii  libstartup-notification0  0.12-6+b1
ii  libx11-6                  2:1.8.4-2+deb12u1
ii  libxau6                   1:1.0.9-1
ii  libxcursor1               1:1.2.1-1
ii  libxext6                  2:1.3.4-1+b1
ii  libxi6                    2:1.8-1+b1
ii  libxinerama1              2:1.1.4-3
ii  libxrandr2                2:1.5.2-2+b1
ii  python3                   3.11.2-1+b1

Versions of packages openbox recommends:
pn  obconf | obconf-qt  <none>
pn  scrot               <none>

Versions of packages openbox suggests:
ii  fonts-dejavu           2.37-6
ii  libxml2-dev            2.9.14+dfsg-1.2
pn  openbox-gnome-session  <none>
pn  openbox-kde-session    <none>
ii  tint2                  17.0.1-1

-- no debconf information

Reply via email to