Comment 31 for bug 1292290

Revision history for this message
Wybo Dekker (wybo) wrote : Re: [Bug 1292290] Re: Window manager keybindings don't work after reboot

On 2014-11-10 20:06, Adarsh K wrote:
> super+m key is not working for any key bindings. The problem is not only
> with maximizing windows but it is identified for other keybindings also
> so please correct me if i am wrong Thaddaus

I think you should have a look at:
.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

This file defines several shortcuts twice. For example, in my version it
contains two definitions that maximize the current window:

<property name="&lt;Alt&gt;F7" type="string" value="maximize_window_key"/>
<property name="&lt;Alt&gt;F10" type="string" value="maximize_window_key"/>

in that order. It is the second, Alt-F10, that works, but if I look in the
xfce4-settings-manager, that tells me that Alt-F7 should maximize the window.

Of course, such definitions should occur only once.
The attached script looks for multiply defined shortcuts in
.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml.
When I run it on my own xfce4-keyboard-shortcuts.xml I get:

2 move_window_workspace_5_key
2 move_window_up_key
2 move_window_workspace_2_key
2 move_window_workspace_4_key
2 move_window_left_key
2 workspace_12_key
2 move_window_right_key
2 up_workspace_key
2 workspace_11_key
2 move_window_workspace_9_key
2 workspace_10_key
2 maximize_window_key
2 move_window_prev_workspace_key
2 move_window_workspace_8_key
2 move_window_workspace_1_key
2 move_window_next_workspace_key
2 move_window_workspace_3_key
2 move_window_workspace_6_key
2 move_window_workspace_7_key
19 doubles

When I remove the first occurrences of all these double definitions from the
file it looks like my system has become sane: I don't succeed in generating new
double definitions by redefining shortcuts in xfce4-settings-manager and
everything works as expected. So it may well be that these double occurrences
have been generated by older versions of xubuntu.
If this is true, then it may be wise to have xfce4-settings-manager to check for
the occurrence of double definitions and let it remove those.

I suggest that you first clean up your own xfce4-keyboard-shortcuts.xml and see
if that helps.

--
Wybo Dekker