Skip to content
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

RaiseWindow doesn't raise a window #175

Open
RossComputerGuy opened this issue Nov 8, 2018 · 1 comment
Open

RaiseWindow doesn't raise a window #175

RossComputerGuy opened this issue Nov 8, 2018 · 1 comment

Comments

@RossComputerGuy
Copy link
Contributor

In RDE Panel's source code the windows item type runs this.panel.app.getXClient().RaiseWindow(window.id); when you left click on a window title that's rendered but the window doesn't get raised. I've already checked that the function is being called because there's a console.log before it.

@santigimeno
Copy link
Collaborator

This one is tricky. I guess it depends on the WM it's running on the system. To accomplish this what I would usually do is use some tools like wmctrl or xdotool and see which command would work for me. Then would call the command with xtrace to find out what x11 requests use. For example to set a window on top of everything I would use this sequence:

1 - Add the _NET_WM_STATE_ABOVE value to the _NET_WM_STATE property.
2 - One you know is set, send a _NET_ACTIVE_WINDOW client message to request the WM to set the focus on the window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants