mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
Use arrow cursor in transient menus.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36875 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6165cdf0c2
commit
317ed00b80
2 changed files with 16 additions and 1 deletions
|
@ -49,6 +49,7 @@
|
|||
|
||||
#import "AppKit/NSMatrix.h"
|
||||
#import "AppKit/NSApplication.h"
|
||||
#import "AppKit/NSCursor.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
#import "AppKit/NSEvent.h"
|
||||
#import "AppKit/NSFont.h"
|
||||
|
@ -1911,8 +1912,17 @@ static BOOL menuBarVisible = YES;
|
|||
[contentView addSubview: _view];
|
||||
|
||||
[_view update];
|
||||
|
||||
|
||||
[_bWindow orderFront: self];
|
||||
|
||||
/* Right mouse buttons which display transient menus don't update
|
||||
* the cursor. So, the current cursor is displayed over the
|
||||
* contextual menu (for example an I beam). However, when menu is
|
||||
* closed the cursor pop, this can set a wrong cursor. We push here
|
||||
* an arrow cursor, the cursor we want at menus. Being sure that
|
||||
* this will pop when menu closes.
|
||||
*/
|
||||
[[NSCursor arrowCursor] push];
|
||||
}
|
||||
|
||||
- (void) close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue