Giter Site home page Giter Site logo

Comments (5)

jmanc3 avatar jmanc3 commented on May 23, 2024 1

Will look into

from winbar.

jmanc3 avatar jmanc3 commented on May 23, 2024

As I feared would happen, I wasn't able to reproduce your issue. I installed Ubuntu 20.04.3 LTS on a virtual machine, updated and upgraded all the packages, git cloned Winbar, installed all the compilation dependencies, unziped the icons, and ran the install script and then tested it out on both Openbox and GNOME and everything worked fine: popup menus didn't close after opening them.

Do me a favor and open the file: "src/taskbar.cpp"; go to line 3031; and change it from:

printf("Could not grab pointer for the window %d\n", window);

To:
printf("Could not grab button on root: %d, for window: %d, error_code: %d\n", app->screen->root, window, error->error_code);

recompile (run the install script again, that is)

and show me what it prints then.

from winbar.

TripleK2004 avatar TripleK2004 commented on May 23, 2024

Sorry for the late reply , i lost my previous ubuntu install . But im using Debian 11 bullseye as of now and I did exactly what you said , here is the output when i click random bar modules

Could not grab button on root: 417, for window: 96469028, error_code: 10
Could not grab button on root: 417, for window: 96469037, error_code: 10
Could not grab button on root: 417, for window: 96469044, error_code: 10
Could not grab button on root: 417, for window: 96469056, error_code: 10
Could not grab button on root: 417, for window: 96469075, error_code: 10
Could not grab button on root: 417, for window: 96469083, error_code: 10

What I suspect is that there is some Xorg related dependency that is missing, i usually build apt debian ubuntu systems through the debootstrap way where I have declared not to install suggested and recommended packages. So i donot have the entire xorg meta package. It would be great if you could tell me what specific package I am missing : )

from winbar.

jmanc3 avatar jmanc3 commented on May 23, 2024

That error code means that "Another client has already issued a GrabButton with the same button/key combination on the same window." How exactly that's occurring, I don't know, and because I can't debug it locally, I won't be able to figure it out, unfortunately.

I think you might be on to something with your suggesting that it's a missing package problem but, it seems unlikely to me that the function that is generating the error xcb_grab_button_checked is missing a dependency or something. Especially with the error code it gives, which makes it seem like someone else (the window manager I expect: GNOME, Openbox, or whatever) is grabbing the mouse, for some reason, before we can.

The reason we close the menu instead of just letting the program continue as if everything was okay is because if we can't take ownership of the mouse when the menu is opened, then we won't know when you click somewhere outside of it and be able to close it for you. That'll mean the window will be left open---unable to be closed.

A test you could run is to remove the line that is right after the one I told you to change and see what happens.
It will be the one that says:
client_close_threaded(app, client);

But the real fix to the problem can only come if I figure out some way to reproduce it on my end and can debug it.

from winbar.

TripleK2004 avatar TripleK2004 commented on May 23, 2024

Happened just as you said , turns out it was due to an imwheel session that i was running. My bad : ) Thanks for the support. Nice project btw

from winbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.