mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 00:42:32 +01:00
wmaker: make disable mouse actions a live set
This patch is allowing to enable or disable the 'disable mouse actions' from the WPrefs app without requiring to restart the session.
This commit is contained in:
committed by
Carlos R. Mafra
parent
51b342fee5
commit
fec8347d27
@@ -745,7 +745,7 @@ static void handleButtonPress(XEvent * event)
|
||||
wBalloonHide(scr);
|
||||
#endif
|
||||
|
||||
if (event->xbutton.window == scr->root_win) {
|
||||
if (!wPreferences.disable_root_mouse && event->xbutton.window == scr->root_win) {
|
||||
if (event->xbutton.button == Button1 && wPreferences.mouse_button1 != WA_NONE) {
|
||||
executeButtonAction(scr, event, wPreferences.mouse_button1);
|
||||
} else if (event->xbutton.button == Button2 && wPreferences.mouse_button2 != WA_NONE) {
|
||||
|
||||
Reference in New Issue
Block a user