! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfwm is locked when some menu pops up
Status:
CLOSED: INVALID
Severity:
critical

Comments

Description Aquila Deus 2005-12-11 07:27:26 CET
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.
Comment 1 Olivier Fourdan editbugs 2005-12-11 08:27:48 CET
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.
Comment 2 Olivier Fourdan editbugs 2005-12-11 08:30:55 CET
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.
Comment 3 Aquila Deus 2005-12-11 11:41:13 CET
(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.
Comment 4 Olivier Fourdan editbugs 2005-12-11 12:39:13 CET
(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.
Comment 5 Aquila Deus 2005-12-11 13:18:16 CET
(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?
Comment 6 Olivier Fourdan editbugs 2005-12-11 14:23:29 CET
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.

Bug #1268

Reported by:
Aquila Deus
Reported on: 2005-12-11
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Test program that grabs the keyboard and mouse. (2.32 KB, text/plain)
2005-12-11 14:23 CET , Olivier Fourdan
no flags

Additional information