From 5a25706d4ed852d480c1c193c3bc317ceadefc6b Mon Sep 17 00:00:00 2001 From: Adam Fedor Date: Mon, 28 Aug 2000 22:29:32 +0000 Subject: [PATCH] Don't update menu for some events git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7277 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSApplication.m | 14 ++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9cb6101e..4ea463a7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-26 Georg Fleischmann + + * gui/Source/NSApplication.m [NSApplication run]: Don't update + menu for NSPeriodic and NSMouseMoved events. + 2000-08-27 Fred Kiefer * Source/NSFontPanel.m: diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 9b05a683a..2e83ef641 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -883,11 +883,17 @@ static NSCell* tileCell = nil; inMode: NSDefaultRunLoopMode dequeue: YES]; if (e) - [self sendEvent: e]; + { NSEventType type = [e type]; - // update (en/disable) the services menu's items - [listener updateServicesMenu]; - [main_menu update]; + [self sendEvent: e]; + + // update (en/disable) the services menu's items + if (type != NSPeriodic && type != NSMouseMoved) + { + [listener updateServicesMenu]; + [main_menu update]; + } + } // send an update message to all visible windows if (windows_need_update)