-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Menus and some tooltips shown only once with xwayland #571
Comments
This
|
Thanks @robotanarchy, it looks somehow related. I've debugged this a bit further: It seems this consistently happens only when wlc is build as RelWithDebInfo (not in Debug). Clicking menu first time, menu works:
Dismissing menu:
Clicking menu again, menu does not appear:
Something sets the win->id to 0... |
I guess your best bet is to ask @Cloudef in IRC if he can help you to debug/fix this. |
I can reproduce this. |
Can confirm, same thing with GIMP as well |
This problem seems not only limited to GTk applications but qt applications too. |
This is not job for wlc, wms should decide their transformation for childs themself. If there is not enough information for popups / modal views that's matter of exposing that information. @SirCmpwn
@scarejar, I've seen it in VirtualBox, which is a Qt application, so can confirm. It really just happens everywhere for me. |
I believe this is fixed on the latest wlc+sway. |
You're correct. It's fixed. Maybe close this ticket? |
I want to get a couple more people to confirm. |
You're right, the problem no longer appears in firefox (with the latest version of wlc and sway from github). Thanks a lot, it was very annoying. ;) |
Still happens to me in firefox with last versions wlc+sway |
Fuck this issue |
These are my dropdown menu issues. example1: Right click in xfce4-terminal and the menu does not work on hover, but cursor keys work. I'm running latest wlc + sway git on arch. |
This was fine for me for a long time. But I think whatever seems to have fixed it for some people (i.e. the change that got this issue closed) brought it back for me. |
I have the exact same symptoms as @ceesco53, but I'm running sway 0.8-2 from the community repos with wlc 0.0.4-1 The right-click menus are definitely appearing now, unlike before I upgraded wlc, but similarly I can't navigate them with the mouse. Sublime Text 3 and GIMP's drop down menus still only show once, and their right click menus are being weird in different ways (Sublime's always appears but mouse doesn't work, GIMP's appears once but mouse works) I don't mind this too much, tbh I use keyboard navigation for 99% of things anyway. Being able to see what I'm doing is good enough! |
I deleted all my environment overrides for GTK/GNOME/wayland from my .zshrc and all my dropdown menus are working as intended. I'm not sure which one caused the problem or if it was upgrading my wlc/sway to the latest git commits today... |
It was the latter. That was fixed by wlc today. |
Fosspay sent. Thank you. |
Thanks! |
I still experience this issue. It happens for me with Firefox tooltips, menu bar menus and right click context menus. It also happens with context menus and menus from the menu bar on PCManFM. It doesn't happen when I right click on files/folders on PCManFM though or with its file/folder tooltips. Additionally, the issue does happen with the menus from the menu bar on Leafpad but not with the context menu. I am on sway-0.9-1 and wlc-0.0.5-1. |
I've noticed this with Firefox as well, notably the Tor browser bundle. Paging @Cloudef |
@VoidNoire I had the same issue. I swapped the repo version for the git version and that solved it. |
Updated to the sway-git package from the AUR which fixed the issue in Firefox. Still occurs in other applications such as Atom, where the drop down menus cease to work more than once. However I did notice that if the Atom window is floating, the menus show up fine, albeit in the wrong place.
|
Same issue for me, had more luck with the git version .... |
@onny Same versions as you, same issue on Void Linux. |
I have been having this issue for a while now. I reloaded my laptop this weekend (ArchLinux x64, Intel GPU if that makes a difference). I used wlc-git and sway-git from AUR, giving me versions 0.0.7-r5 and 0.10-rc1-59 (2016-10-30) respectively. I ran GIMP as a test, as it had huge problems with context menus and drop downs not appearing. It now works flawlessly 😄 I am going to blame the fact that I moved from the AUR package to the community version back when I started using sway, and probably didn't uninstall them right. I was very very careful with my package selection this time around, so if anyone wants to see my setup commands I'll happily share them. |
Guys, if anyone wants to see this issue resolved you're gonna have to dig in and figure it out. A dozen people saying they can reproduce it isn't half as helpful as one person figuring the damn problem out. |
Commenting line 508 in wlc's
|
Hey thanks for trying to fix this, @chel8413! I guess you did not intend to do this, but as far as I know with your patch, the remaining code works the following way (probably not intended): if (view && (view->type & WLC_BIT_UNMANAGED))
{
if (view)
wlc_x11_window_set_active(&view->x11, true);
} So when you want to render the if-condition useless, comment out both lines (or delete them, as dead code is not really a good thing): // if (view && (view->type & WLC_BIT_UNMANAGED))
// return; @chel8413: Does commenting out the whole if-codition also fix it for you? @SirCmpwn, @Cloudef: Does the fix look legit, or is this just randomly avoiding the race condition? |
@robotanarchy yes, you are right, that was not intended. I tested and noticed that the menues work out of the box using the current master as @m1cr0man mentions. Probably I didn't check with the current wlc-master before doing the change... my apologies for the confusion. |
I just encountered this issue in Gimp while using the |
After dealing a long time with the issue:
I guess this is obvious already to @SirCmpwn and @Cloudef, but it is probably not obvious to everyone else. So again: installing the git version is a workaround that randomly works, but it does not fix the issue! The obvious difference between the AUR PKGBUILD and the ABS PKGBUILD is for both EDIT: @aereaux has already written this down here: Cloudef/wlc#104 (comment) |
Can someone clarify which (one or both) of wlc and sway can be built from source to "fix" the issue? |
It is a problem from wlc. If you install sway from arch repos, then install wlc-git from aur the issue is solved. Maybe some bisection can tell us which commit solved it. |
Bisect won't help. It's a difference with how it's built, not a bug introduced in a specific commit. Next step: can someone turn wlc logging up to 11 and show a comparison of two sway logs with and without the bug? |
I have created some log files, with a diff. @SirCmpwn, can you take a look at them? versions
stepsfor each log file:
generate the diff (remove timestamps, colorized diff, add line numbers, convert to html):
files
|
I'm using sway 0.11 stable from the ArchLinux repo now and it works as long as I use the wlc-git package from the AUR (wlc stable reintroduces this issue) |
I'm using wlc from ABS (ArchLinux) and just change 'Release' word to 'Upstream' - and menu shows as expected. But I found another issue with mouse pointer - that disapear when using with Visual Studio Code as an example. When I move from opened file place to folder tree it often hide mouse pointer... And I need to switch to other workspace and move mouse to make it visible again. Mouse theme is: Pulse-Glass Also, often - dialogs shows behind main window - example: chromium (even attach this file). And I need to resize dialogs manualy - can it be configurable?... And how to position dialogs to center of the screen to prevent random positions... My configuration file in atach... |
This is a 45-comment-strong issue about something else. Open a new one. |
Two new ones. |
I know he's gonna create a new issue and i can repeat this there but the exact same thing happens to me, i will go into additional detail when he creates the new issue else I'll do it in a little bit |
I'm having an issue with the right click contextual menu in Firefox, the right click event seems to be fired when I press and when I release the button. The thing is, I'm using Weston, no wlc or sway. I saw the same bug in in sway. I often see issues with mis-aligned menus, and had a random issue with the menu appearing beneath the window (very useful...) but it seems to have gone away in the latest update. Firefox under Gnome(Wayland) seems to work well and not exhibit this promplem. Again, this is not sway/wlc - but it might help. |
This has been fixed in the wlroots branch. 🎉 |
I see issue where some of the menus and tooltips are displayed only once and after they are dismissed they won't be displayed again. Sometimes switching to another windows fixes this.
For example here I opened xfce-terminal, and clicked help menu, log displays:
Menu appears, now clicking on terminal window to close the menu.
After this clicking the help menu does nothing and nothing on the log, but clicking other menues work, but also just one single time
sway is 0.3 release version
wlc is git r913.2a9a7d0 (latest)
The text was updated successfully, but these errors were encountered: