-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run xmenu when a button is pressed #35
Comments
No, its not. Buttons usually activate when they are released. |
Menu items are actually activated when the mouse button is released. This is the intended behavior I knowingly implemented. |
Oh, are you talking about the menu popping up, not the item being activated? As far as I understand, when a button is pressed, the release event is only sent to the X client that got the pressing event. |
-- This is exactly the kind of behavior I need, but I can't get it. The menu itself appears when I release the mouse button and I have to click again to select the menu item - that is, I have to make two clicks. What's the reason I can't figure out... |
I use sxhkd to assign keyboard shortcuts.
and this is the xmenu-3 file itself :
Shouldn't the menu appear when you press super + Tab ? |
You probably do not understand what I am talking about. |
xmenu also performs a keyboard grab in addition to a button grab you can avoid that by not relying on a caller like |
Please tell me the full command I need to add to ~/.xinitrc to open my xmenu-3 with ONE right mouse button. |
replace your xmenu call in your script with this:
then invoke your script directly in your |
It's not working ( Now the menu appears on Super+button3 (and I need only on button 3) I probably give up and uninstall xmenu, |
The menu should appear when you click, and then, without releasing the mouse button, you select an item from the menu and then release this button - to run the selected item from the menu... |
Does it work as expected on the desktop (root menu) without using the Super key, only with the button 3? Btw, is your numlock activated? If it is, I have just found a bug on xmenu that may cause that. |
I apologize for the delay. |
No, it still does not work with another keyboard (numlock disabled). I will try to describe the problem more precisely. Required behavior: I have a menu file created called xmenu-3:
In sxhkdrc I've binded the third mouse button to start xmenu-3 and this menu appears in the root window of the desktop, but it appears when I release the mouse button and not when I press it - so I can't select a menu item without releasing the mouse button... Next...
And added xmenu-3 autorun to the .xinitrc: After that, my menu appears in the root window of the desktop only when I press mod4 and the third mouse button, but it appears as it should - exactly when you press it, not as it was. Besides I do not need this mod4, and need only a click on the third mouse button. ======== Information about my system: sorry about the translator, my english is not very good |
That seems a weird behavior. Have you removed the xmenu entry from sxhkd? |
Yes, of course, I checked everything. And even tried a session with sxhkd disabled - same thing, Why do you have mod4 in this line? I don't even know where to dig anymore... |
Experimented a little with the script With different mods and different mouse buttons the behavior is the same as I described above, BUT ========= And what kind of program do you have? - xclickroot |
In bspwm xclickroot doesn't work either, nor does xmenu -x. Tried it in my openbox: Damn it! )))))) |
I also have WMs here Maybe I'll try them later, if I don't get bored with the whole thing ))) |
That behavior is expected for xclickroot, as it grabs the button press and xmenu could not watch the press-then-release events. But for the I'm rewriting xmenu from scratch, changing most of the code base and most of the logic in it. Meanwhile, the only I can do is to recommend you a different application like https://github.com/jgmenu/jgmenu |
Hello, it's me again. An interesting observation. I recently started using XNOTIFY (.actionbutton = Button1 in my XNOTIFY config) Let me remind you that on the root window XMENU appears only when I release 3 button Maybe this will give you some ideas? |
Thanks for the advice, but I used JGMENU before - it consumes memory in the background and also does not work selecting a menu item on releasing the button, Well, I'm already used to XMENU and used to double-click ) |
Now I tried HERBE and the behavior is the same as with XNOTIFY - right-clicking on the message box XMENU works as it should. It turns out that the real root window is not recognized, but the XNOTIFY and HERBE windows are recognized as the root window... Interesting all this |
Hi, I made a change in Can you check if your problem is solved with this new xclickroot? With xclickroot you do not need xmenu's |
Thank you. I will try it a little later. |
Unfortunately in BSPWM the I decided to try it in OPENBOX - in it |
Oh, sorry about that. It was supposed to continue the loop when clicking on a non-root window, rather than breaking the loop. The last commit on xclickroot fixes that line. |
Yay But I use BSPWM on a daily basis and it still doesn't work. What is even the difference between them? |
A little later I will try P.S. |
Now I have tried other WMs In DK wm and Openbox Okay, I won't torture you, I'll leave it as it is. |
That's weir indeed. |
Hello.
Thank you for the project!
Xmenu starts when a button or key is released - why is this so?
Is it possible to change this behavior and make xmenu run when pressed?
this is normal behavior for any program...
The text was updated successfully, but these errors were encountered: