Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-29 Thread Daniel Stone
On Wed, May 27, 2009 at 10:14:17AM +1000, Peter Hutterer wrote: On Tue, May 26, 2009 at 02:13:15PM +0100, Daniel Stone wrote: On Tue, May 26, 2009 at 01:17:15PM +1000, Peter Hutterer wrote: VT switching only works as long as the grab is asynchronous, otherwise events are queued up on the

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-27 Thread Xavier Bestel
On Tue, 2009-05-26 at 11:50 +1000, Peter Hutterer wrote: The main benefit of a grab in the use of menus is that you will get the next event regardless of where it occurs. This is what makes the menu disappear when you click elsewhere. If the application didn't grab, the menu could only

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-27 Thread David Campbell
Peter, Do you think that http://cgit.freedesktop.org/xorg/xserver/commit/?id=5e43cd28692bc05cac80f38b47104a26c0524385 can/should be backed out for the time being until an alternative solution to this matter becomes available, because with this change in place in the current server, there's

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-27 Thread Peter Hutterer
On Thu, May 28, 2009 at 08:30:24AM +1000, David Campbell wrote: Do you think that http://cgit.freedesktop.org/xorg/xserver/commit/?id=5e43cd28692bc05cac80f38b47104a26c0524385 can/should be backed out for the time being until an alternative solution to this matter becomes available,

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-27 Thread Glynn Clements
Xavier Bestel wrote: The main benefit of a grab in the use of menus is that you will get the next event regardless of where it occurs. This is what makes the menu disappear when you click elsewhere. If the application didn't grab, the menu could only disappear by activating a menu item,

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-26 Thread Daniel Stone
On Tue, May 26, 2009 at 01:17:15PM +1000, Peter Hutterer wrote: On Tue, May 26, 2009 at 11:56:58AM +1000, David Campbell wrote: By switching to a VT, did you mean pressing CTRL-ALT-number to switch to a virtual terminal? That doesn't work for me, due to the grab. Pressing those

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-26 Thread Harald Braumann
On Tue, 26 May 2009 11:56:58 +1000 David Campbell da...@pastornet.net.au wrote: By switching to a VT, did you mean pressing CTRL-ALT-number to switch to a virtual terminal? That doesn't work for me, due to the grab. Pressing those keystrokes is unresponsive, thus for a standalone system in

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-26 Thread Peter Hutterer
On Tue, May 26, 2009 at 02:13:15PM +0100, Daniel Stone wrote: On Tue, May 26, 2009 at 01:17:15PM +1000, Peter Hutterer wrote: On Tue, May 26, 2009 at 11:56:58AM +1000, David Campbell wrote: By switching to a VT, did you mean pressing CTRL-ALT-number to switch to a virtual terminal?

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread Maarten Maathuis
I personally wouldn't mind a kill all grabs button/key/whatever. Even if you can debug a grab issue, you don't always have the time or the right machine (debugging symbols and friends) to do it. Maarten. ___ xorg mailing list xorg@lists.freedesktop.org

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread Peter Hutterer
On Mon, May 25, 2009 at 06:21:27PM -0700, Dylan McCall wrote: I wouldn't disagree that there is a problem for novice programmers, debugging a GUI app for the first time. But for these people, an obscure way to reconfigure their X server doesn't help much either. - Owen I think

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread David Campbell
Owen Taylor wrote: On Tue, 2009-05-26 at 10:00 +1000, David Campbell wrote: Hi, Many/most GUI toolkits implement pop up menus using grabs. This can cause major desktop lockups when debugging GUI applications, because hitting breakpoints in pop up menu callback code will occur while a

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread Daniel Stone
On Tue, May 26, 2009 at 03:46:12AM +0200, Maarten Maathuis wrote: I personally wouldn't mind a kill all grabs button/key/whatever. Even if you can debug a grab issue, you don't always have the time or the right machine (debugging symbols and friends) to do it. Yeah, it will come back as an XKB

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread Peter Hutterer
On Tue, May 26, 2009 at 11:56:58AM +1000, David Campbell wrote: Owen Taylor wrote: On Tue, 2009-05-26 at 10:00 +1000, David Campbell wrote: Hi, Many/most GUI toolkits implement pop up menus using grabs. This can cause major desktop lockups when debugging GUI applications, because

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread David Campbell
Daniel, If the kill all grabs functionality came back as an XKB action, that wouldn't help in this situation, would it, given that CTRL-ALT-number isn't working, which would seem to indicate that a synchronous grab is used? If VT switching doesn't work due to a synchronous grab, then an XKB

Re: It's useful to have a working X server if a client holds a grab when it triggers a debugger breakpoint

2009-05-25 Thread Peter Hutterer
On Tue, May 26, 2009 at 01:55:17PM +1000, David Campbell wrote: Daniel, If the kill all grabs functionality came back as an XKB action, that wouldn't help in this situation, would it, given that CTRL-ALT-number isn't working, which would seem to indicate that a synchronous grab is