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

[BUG] "window" mode doesn't show fullscreen windows #2071

Closed
2 tasks done
sinexl opened this issue Jan 3, 2025 · 11 comments
Closed
2 tasks done

[BUG] "window" mode doesn't show fullscreen windows #2071

sinexl opened this issue Jan 3, 2025 · 11 comments
Labels
Milestone

Comments

@sinexl
Copy link

sinexl commented Jan 3, 2025

Rofi version (rofi -v)

Version: 1.7.6-dirty

Configuration

https://gist.github.com/sinexl/a69e9c17849af33c307250dfb7b4da5b

Theme

https://gist.github.com/sinexl/a69e9c17849af33c307250dfb7b4da5b

Timing report

No response

Launch command

rofi -no-lazy-grab -normal-window -show window -modi window

Step to reproduce

  • Open terminal (tested on Alacritty and WezTerm)
  • Put terminal window in fullscreen mode
  • Run rofi with mentioned command and notice that it doesn't show any fullscreen windows, including terminal it was launched from
    rofi-bug
    (Note: for screenshot i also resized rofi to not cover whole screen, although it doesn't affect the result)

Expected behavior

Rofi would show fullscreen windows in list

Actual behavior

Rofi doesn't show any windows that are fullscreen

Additional information

OS: EndeavourOS, WM: AwesomeWM

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@sinexl sinexl added the bug label Jan 3, 2025
@DaveDavenport
Copy link
Collaborator

Cannot reproduce this on endevourOs and awesomewm..

I in this list I see all open windows, including the fullscreen one.

image

I did notice a pinned window does not show up.

@sinexl
Copy link
Author

sinexl commented Jan 3, 2025

I think the problem is due to something different then. I've tried to log in from different user without any configuration files to Awesome/Rofi and still same bug occurs.
rofi-bug2

@DaveDavenport
Copy link
Collaborator

You put it in fullscreen using Win+F? or any other way?

@sinexl
Copy link
Author

sinexl commented Jan 3, 2025

You put it in fullscreen using Win+F? or any other way?

Yes. I've also noticed this bug for windows that are maxemized (On telegram desktop specifically)

@DaveDavenport
Copy link
Collaborator

I wonder why it behaves differently here.. maximize is fine. I also don't see anything in the code that could do this.

@DaveDavenport
Copy link
Collaborator

Can you do a xprop on a windows that does not show and pastebin the output?

@DaveDavenport
Copy link
Collaborator

diff --git a/source/modes/window.c b/source/modes/window.c
index 27798c81..50d78c2a 100644
--- a/source/modes/window.c
+++ b/source/modes/window.c
@@ -296,7 +296,7 @@ window_get_attributes(xcb_window_t w) {
 // _NET_WM_STATE_*
 static int client_has_state(client *c, xcb_atom_t state) {
   for (int i = 0; i < c->states; i++) {
-    if ((c->state[i] & state) == state) {
+    if ((c->state[i]) == state) {
       return 1;
     }
   }

does this fix it?

Not sure why I changed this anymore.. But this might not be right.. (damn lack of clear documentation on xcb_*)

@DaveDavenport
Copy link
Collaborator

is also on git, so the rofi-git aur should also be ok to test...
thanks.

@DaveDavenport DaveDavenport added this to the 1.7.7 milestone Jan 3, 2025
@sinexl
Copy link
Author

sinexl commented Jan 3, 2025

Can you do a xprop on a windows that does not show and pastebin the output?

Here are some of them
https://pastebin.com/XMz0wLf4

@sinexl
Copy link
Author

sinexl commented Jan 3, 2025

is also on git, so the rofi-git aur should also be ok to test... thanks.

Now it works! Thank you so much!

@DaveDavenport
Copy link
Collaborator

Thanks for testing!

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

No branches or pull requests

2 participants