mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Additional fix for color selection issue.
This commit is contained in:
parent
ab5a52b59e
commit
54fc199d73
1 changed files with 5 additions and 3 deletions
|
@ -66,7 +66,8 @@ static NSColorSampler *_gs_gui_color_sampler = nil;
|
|||
{
|
||||
_gs_gui_color_sampler = self;
|
||||
}
|
||||
else if (self != _gs_gui_color_sampler)
|
||||
|
||||
if (self != _gs_gui_color_sampler)
|
||||
{
|
||||
RELEASE(self);
|
||||
return _gs_gui_color_sampler;
|
||||
|
@ -90,8 +91,9 @@ static NSColorSampler *_gs_gui_color_sampler = nil;
|
|||
NSColor *color = nil;
|
||||
|
||||
[_gs_gui_color_sampler_lock lock];
|
||||
|
||||
[w orderFront: nil];
|
||||
|
||||
[w setBecomesKeyOnlyIfNeeded: YES];
|
||||
[w makeKeyAndOrderFront: self];
|
||||
[w _captureMouse: self];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue