! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfwm4 regression: Window buttons react to mouse-down instead of mouse-up
Status:
RESOLVED: FIXED

Comments

Description haarp 2018-10-06 11:39:01 CEST
In Xfwm4-4.13.0, you could click a window button, move the pointer away, then release the mouse button to abort the button press. This has been the way to cancel accidental button presses since at least Windows 95. In Xfwm4-4.13.1, this doesn't work anymore. As soon as you press the mouse button, it doesn't matter where you release it, it will go through.
Comment 1 haarp 2018-10-06 12:13:22 CEST
git bisect:

# possible first bad commit: [ef33ff7b2666ffc320700592fc7d4a300d5a8163] Replace XEvent with XfwmEvent + add xfwm_device_* grabs usage
# possible first bad commit: [6013f1ee9b3831991db6a0fb896f20537532b6ce] device: Implement XI2 event handling
Comment 2 Skunnyk editbugs 2019-04-09 23:51:35 CEST
I can't trigger the bug with Xfwm4 4.13.x, but maybe I don't understand how to reproduce :/
Comment 3 Skunnyk editbugs 2019-04-09 23:53:39 CEST
Created attachment 8394 
Maybe fix 14741, patch from ninetls

Maybe a patch that can fix the issue, from ninetls few months ago.
As this bug is a blocker for 4.14, I post this patch in the issue. Found it in my IRC backlog, pasting it before it disappears.
Comment 4 haarp 2019-04-09 23:54:33 CEST
Hmm. Xfwm4-4.13.1 with compositing enabled. Repro:

- Mousedown on close buttong of a window
- Move cursor away from close button
- Release mouse button

Result: Window closes, Expectation: Window remains open
Comment 5 haarp 2019-04-10 00:01:05 CEST
(In reply to Skunnyk from comment #3)
> Created attachment 8394 
> Maybe fix 14741, patch from ninetls
> 
> Maybe a patch that can fix the issue, from ninetls few months ago.
> As this bug is a blocker for 4.14, I post this patch in the issue. Found it
> in my IRC backlog, pasting it before it disappears.

Yay, this patch fixes this bug :)
Comment 6 Andre Miranda editbugs 2019-04-10 02:45:17 CEST
I can confirm the patch fixes the problem, but no idea if there are any side effects.
Comment 7 Skunnyk editbugs 2019-04-10 11:12:36 CEST
Ok, I can reproduce, and the patch fix the bug !
Comment 8 Git Bot editbugs 2019-04-14 21:04:19 CEST
Viktor Odintsev referenced this bugreport in commit f5da3d6622c22246ac367bd80fc24ea08c9baa2e

events: Fix implicit grabs

https://git.xfce.org/xfce/xfwm4/commit?id=f5da3d6622c22246ac367bd80fc24ea08c9baa2e
Comment 9 haarp 2019-04-15 10:01:29 CEST
Confirmed working after this commit. Thanks!
Comment 10 Git Bot editbugs 2019-05-15 22:51:32 CEST
Olivier Fourdan referenced this bugreport in commit 86c88ac79034240c1e43d4f5538857caab1abcab

client: Fix enter/leave on buttons

https://git.xfce.org/xfce/xfwm4/commit?id=86c88ac79034240c1e43d4f5538857caab1abcab
Comment 11 Andre Miranda editbugs 2019-05-16 05:59:37 CEST
The fix was reverted in:
https://git.xfce.org/xfce/xfwm4/commit?id=0f34265d83207ffe3486986d269af868cef29e30

The commit mentioned in comment 10 doesn't fix the problem for me.
Comment 12 Olivier Fourdan editbugs 2019-05-16 08:14:59 CEST
That's right, but commit https://git.xfce.org/xfce/xfwm4/commit?id=f5da3d66 is unacceptable, so back to the drawing board.
Comment 13 Git Bot editbugs 2019-05-16 22:11:28 CEST
Olivier Fourdan referenced this bugreport in commit e87422e55b5e861ae918fa053680abe9065e08e1

client: Check for enter/leave window on button events

https://git.xfce.org/xfce/xfwm4/commit?id=e87422e55b5e861ae918fa053680abe9065e08e1
Comment 14 Olivier Fourdan editbugs 2019-05-16 22:13:49 CEST
That should fix it for good,
Comment 15 Olivier Fourdan editbugs 2019-05-28 22:41:43 CEST
*** Bug 15494 has been marked as a duplicate of this bug. ***

Bug #14741

Reported by:
haarp
Reported on: 2018-10-06
Last modified on: 2019-05-28
Duplicates (1):
  • 15494 Unable to cancel execution of window control by dragging mouse off window control

People

Assignee:
Olivier Fourdan
CC List:
4 users

Version

Version:
4.13.1

Attachments

Additional information