! 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 !
XFCE Panel Window Buttons Bug Multi Window Properties
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
Window Buttons

Comments

Description Louis Raymond 2019-06-19 13:04:35 CEST
Version info : 4.13.5git-44d2d6 (Xfce 4.13)
Manjaro Linux 18.0.4 pacman branch testing.

Panel hung . Major.
How to reproduce?
- Window Buttons Preferences -> Window grouping = Always
- Open multiple window with the same app.
- Left click to show windows title list
- Right click on one of the title
- Leftclick on any other apps (including wallpaper background)
- Panel will hang and is restartable by using xkill
Comment 1 Andre Miranda editbugs 2019-06-20 03:29:43 CEST
I can confirm this bug, easily reproducible.
Running git bisect, I was able to determine which commit introduce the regression for sure, but it's most likely caused by one of these:
https://git.xfce.org/xfce/xfce4-panel/commit/?id=43dfa79
https://git.xfce.org/xfce/xfce4-panel/commit/?id=bffe11c

I manually revert the changes from the first commit made to tasklist-widget.c, now the panel doesn't crash but I get the following error message at xfce_tasklist_button_button_press_event:
Gtk-CRITICAL **: 22:23:03.218: gtk_toggle_button_set_active: assertion 'GTK_IS_TOGGLE_BUTTON (toggle_button)' failed
Comment 2 Simon Steinbeiss editbugs 2019-06-23 23:35:37 CEST
Not sure yet where the problem is, but if you cancel the popup menu with the "Esc" key it exits correctly. So the problem seems to be happening when destroying the menu...
Comment 3 Simon Steinbeiss editbugs 2019-06-24 01:12:23 CEST
My current suggestion would be to deactivate this particular right-click submenu. It's not very useful (you can get to it more easily and obviously through the left-click menu) and I can't seem to figure out why it causes that crash. It may also take quite a bit longer to get to the bottom of it, including reading the source of libwnck (wnck_action_menu_new).

My findings so far are that the right-click menu doesn't seem to get any signal when losing its focus (so it can't destroy itself) and the toplevel menu (which contains the application windows) doesn't seem to be able to destroy the attached submenu when losing focus.
Comment 4 Git Bot editbugs 2019-06-24 22:42:10 CEST
Simon Steinbeiss referenced this bugreport in commit 0ad33088dc56673a652ea0b5919ba0e3b3b560d5

tasklist: Don't show actionsmenu in grouped windows (Bug #15622)

https://git.xfce.org/xfce/xfce4-panel/commit?id=0ad33088dc56673a652ea0b5919ba0e3b3b560d5
Comment 5 Simon Steinbeiss editbugs 2019-06-24 22:45:47 CEST
I went for handling right-click like left-click, i.e. it doesn't show yet-another-menu stacked on top of a menu, but instead simply activates the window the user clicked.

All other window actions are available in the regular right-click menu anyway and that's the consistent way to find those actions (as it's consistent with ungrouped window buttons).

Bug #15622

Reported by:
Louis Raymond
Reported on: 2019-06-19
Last modified on: 2019-06-24

People

Assignee:
Simon Steinbeiss
CC List:
2 users

Version

Version:
4.13.5

Attachments

Additional information