freebsd-ports/x11-wm/sawfish2/files/patch-scripts_sawfish-menu.jl
Joe Marcus Clarke 77377361c2 Add a patch to prevent lockups with custom menus.
PR:	52069
Submitted by:	sheldonh
Obtained from:	Sawfish CVS
2003-05-20 16:02:09 +00:00

12 lines
399 B
Julia
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- scripts/sawfish-menu.jl.orig Tue May 20 11:49:42 2003
+++ scripts/sawfish-menu.jl Tue May 20 11:50:54 2003
@@ -106,7 +106,8 @@
(g-signal-connect menu "deactivate" gtk-main-quit)
(setq menu-selected nil)
(gtk-menu-popup-interp menu nil nil 0 (or timestamp 0) position)
- (gtk-main)
+ (when (memq 'visible (GTK-WIDGET-FLAGS menu))
+ (gtk-main))
menu-selected))