Issue 560 in xmonad: Popup (code completion) window disappears

Status: New Owner: ---- New issue 560 by j...@jupiter.dk: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 What steps will reproduce the problem? 1. Start IntelliJ IDE (I tried phpstorm) 2. Do word completion ("IntelliSense") and find a long method signature/description in the popup 3. Completion popup window mostly disappears (see attached photo). What is the expected output? What do you see instead? That the window stays visible What version of the product are you using? On what operating system? $ xmonad --version xmonad 0.11 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring Are you using an xmonad.hs? import XMonad import XMonad.Hooks.SetWMName import XMonad.Hooks.DynamicLog import XMonad.Hooks.ICCCMFocus import XMonad.Hooks.ManageHelpers import XMonad.Hooks.EwmhDesktops main = xmonad $ defaultConfig { modMask = mod4Mask, startupHook = setWMName "LG3D" >> takeTopFocus, manageHook = composeOne [ transience, isFullscreen -?> doFullFloat ], logHook = setWMName "LG3D" >> takeTopFocus } Log of xmonad --recompile is empty. Attachments: phpstorm-xmonad.png 16.8 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #1 on issue 560 by lingna...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 I have similar issues as well. However mine is less severe as it only happens half of the time. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #2 on issue 560 by j...@jupiter.dk: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 The i3 wm does a better job and configuration is less of a nightmare (java programs just work - no stupid hacks or anything). This bug is a severe showstopper and I am not looking back after switching to i3. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #3 on issue 560 by epirea...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 I've got this in my setup as well. It's really annoying.. you can sometimes work-around it by narrowing down the number of matches by typing part of the method name you're hunting for. -> % xmonad --version xmonad 0.11 -> % lsb_release -a LSB Version: 1.4 Distributor ID: Arch Description: Arch Linux Release: rolling Codename: n/a -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #4 on issue 560 by carsten....@googlemail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Same problem for me, but only if I use oracle jdk7. With sun jdk6 on the other hand, it works flawlessly. Maybe this helps you tracking down the issue. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #5 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Same issue here. Probably results from focus acquired by small window with long completion string (does not happen on jdk6). Maybe diff between xprop for the small window on jdk6 and jdk7 can be useful (removed all ids). Attachments: xprop.diff 881 bytes -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #6 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Looking further at xprop difference on jdk7 between main completion popup (which does not take focus) and small complementary window for long completions (which does), the main differnece looks to be in: WM_STATE(WM_STATE): window state: Normal which is present for the later. Is anyone aware if windows with normal states are managed in a different way? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #7 on issue 560 by allber...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 The window without WM_STATE is not ICCCM compliant, as WM_STATE is mandatory. I would not be surprised if xmonad catches an exception while trying to manage it because it doesn't have the window attributes that all windows are required to have. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #8 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 So most probably it worked as expected for jdk6 as it was more broken then jdk7? Ironic :) Looking at hints section: Window manager hints: Client accepts input or input focus: No Window type: Dialog Window state: Skip Taskbar specifically "Client accepts input or input focus: No", does this mean such window should not receive focus? And if yes, does xmonad support this hint? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #9 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Apparently input hint is of no importance here (especially that most jdk7 windows have this flag set to false). What distinguishes problematic window from others is lack of WM_TAKE_FOCUS atom. Both params "input hint" and "WM_TAKE_FOCUS" seem to be evaluated in setFocusX function, but from my investigation none of the "whens" is applied there. Which function actually changes focus to new window? Should it consider WM_TAKE_FOCUS? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #10 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Yet another observation... the main completion window actually does not disappear, it just goes down below every other window. Probably because it is not managed by xmonad due to missing WM_STATE which might be in the end the root cause. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #11 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Nah, the problem with main completion window not being managed by xmonad is not lack of WM_STATE but rather lack of MapRequest event on its creation (only *Notify events are generated). If I replace handler for MapRequestEvent to process MapNotifyEvent it's kinda better -- main completion window stays up, but the additional small window never shows up as well as xmobar. No idea where to go from here - why MapRequest is not generated and how IntelliJ could possibly fix this... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #12 on issue 560 by a...@mcelwee.me: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 These two comments on the Jetbrains bugtracker were a sufficient workaround for me. http://youtrack.jetbrains.com/issue/IDEA-101072#comment=27-453372 http://youtrack.jetbrains.com/issue/IDEA-101072#comment=27-456320 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #13 on issue 560 by epirea...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Interesting - I had a look at the Jetbrains issue tracker, and there's a work-around that seems to solve this for me (!): http://youtrack.jetbrains.com/issue/IDEA-101072 Basically - start IDEA with -Dide.expansion.hints.enabled=false to avoid this behavior. There are also some comments that discusses an alternative way of solving the issue by tweaking the xmonad config. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #14 on issue 560 by allber...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Jan.Palus: that means it's keeping one window around and hiding it by burying it. But the first time it shows up it should be mapped and therefore managed... Is it perhaps override_redirect? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #15 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 So the first time it shows up, only 3 Notify events are generated: Create, Configure, Map, but during idea startup there are 3 MapRequests - one for splash screen I guees, second for main window, not sure if third might be for completion window which is not there yet. But indeed it has following properties set as reported by xwininfo: Override Redirect State: yes Override redirection?: Yes Mentioned workaround (-Dide.expansion.hints.enabled=false) indeed keeps completion window up, at a small price of never showing the small window for long completions. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #16 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Just to add to previous comment - debug stack hook does not ever show window corresponding to completion window. I also managed to minimize MapRequests during sturtup to 2 by closing any panel that might have spawned additional window, so it really seems completion window does not generate MapRequest. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #17 on issue 560 by allber...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 It won't; override-redirect means the window manager has no control over the window, so ConfigureRequest and MapRequest will not be generated by the X server and we find out about it at MapNotify (at which point it is too late to manage it, by design) and cannot put it in the StackSet. It also means the application must manage the window itself. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

Comment #18 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560 Thanks, so actually the most convenient solution (at least that would work for sure), would be on idea side to preserve same window properties (override redirect mainly) for the small window with long completion. This way it would not be managed by xmonad and hence not result in stack refresh. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings

I have got a question, which command lead to connect wireless Internet in
terminal.
*kind regards,*
*Boyang YAN (William)*
*-------------------------------------------------------------------------*
*Alternate Email: by932@uowmail.edu.au
Comment #18 on issue 560 by Jan.Pa...@gmail.com: Popup (code completion) window disappears http://code.google.com/p/xmonad/issues/detail?id=560
Thanks, so actually the most convenient solution (at least that would work for sure), would be on idea side to preserve same window properties (override redirect mainly) for the small window with long completion. This way it would not be managed by xmonad and hence not result in stack refresh.
-- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

You should really start a new discussion instead of tagging onto an
existing one, especially one that is just reporting activity on our bug
tracker.
On Fri, Mar 14, 2014 at 4:00 AM, Boyang Yan
I have got a question, which command lead to connect wireless Internet in terminal.
On must Linuxes you are probably looking for nmcli, but that implies you're running a tray manager (systray, trayer, trayer-srg) and nm-applet since it cannot *configure* networks, only activate existing configurations. If you're not using NetworkManager, it gets a bit harder; you need to install and configure wpa_supplicant. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (3)
-
Boyang Yan
-
Brandon Allbery
-
codesite-noreply@google.com