when gtk2 or qt3 menu pops up, all xfwm hotkeys fail to work, and mouse-wheel on desktop can't change workspace, and none of windows can be dragged... If the app that pops the menu hangs, the whole desktop also hangs until it's killed. The same problem exists in KDE too, but not in *box WMs.
Can you elaborate? I mean, what you describe is an application grabbing the mouse/keyboard, it's therefore normal and expected that other application such as the window manager don't get the events.
BTW if an application hangs with a menu opened, please make sure you file a high priority bug to the applications's bug database, because that should really not happen.
(In reply to comment #1) > Can you elaborate? I mean, what you describe is an application grabbing the > mouse/keyboard, it's therefore normal and expected that other application such > as the window manager don't get the events. Yes, but are normal applications supposed to be able to hang the whole desktop by any means?? It doesn't matter whether it's bug in those apps/frameworks or not.
(In reply to comment #3) > > Yes, but are normal applications supposed to be able to hang the whole desktop > by any means?? It doesn't matter whether it's bug in those apps/frameworks or > not. The window manager is not there to fix all the problems that lie in the applications. It's the normal behaviour that an application grabs the mouse and keyboard when opening menus, and it's the normal behaviour that other apps don't get event when another one grabs the mouse and keyboard. Anything else is a bug. So please, file bugs to the applications that hang your system.
(In reply to comment #4) > (In reply to comment #3) > > > > Yes, but are normal applications supposed to be able to hang the whole desktop > > by any means?? It doesn't matter whether it's bug in those apps/frameworks or > > not. > > The window manager is not there to fix all the problems that lie in the > applications. > > It's the normal behaviour that an application grabs the mouse and keyboard when > opening menus, and it's the normal behaviour that other apps don't get event > when another one grabs the mouse and keyboard. Anything else is a bug. > > So please, file bugs to the applications that hang your system. But blackbox and some other WMs don't have the problem... Wouldn't it be good if xfwm can cope with that too?
Created attachment 364 Test program that grabs the keyboard and mouse. > But blackbox and some other WMs don't have the problem... > Wouldn't it be good if xfwm can cope with that too? I hardly see how any WM could get the events if the application grabs the keyboard ans focus. I've just apt-get install blackbox and it works like any other window manager. Anyway, if an application grabs the keyboard and the focus, it will receive the events. Even if it was doable to bypass that, that would not be suitable. Look, I've prepared a test application. Save the attached source as stuck.c and compile it with: gcc -Wall -g stuck.c -o stuck `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` Then run it, and you'll get stuck until you either click the button or press "enter". Please note that the routine that grabs the keyboard and mouse in this example is simply a cut'n paste of the routine from gtkmenu.c, so that test is real.