[qwaq] Raise windows when clicked

This commit is contained in:
Bill Currie 2020-03-26 11:18:00 +09:00
parent af0333a172
commit 35bb3a3854
4 changed files with 14 additions and 0 deletions

View file

@ -76,6 +76,7 @@ makeFirst (Group *self, int viewIndex)
[self.views addObject: view]; [self.views addObject: view];
[self.views removeObjectAtIndex: viewIndex]; [self.views removeObjectAtIndex: viewIndex];
[view raise];
return [self.views count] - 1; return [self.views count] - 1;
} }

View file

@ -72,6 +72,7 @@ enum {
-loseFocus; -loseFocus;
-(ListenerGroup *) onReceiveFocus; -(ListenerGroup *) onReceiveFocus;
-(ListenerGroup *) onReleaseFocus; -(ListenerGroup *) onReleaseFocus;
-raise;
- (void) onMouseEnter: (Point) pos; - (void) onMouseEnter: (Point) pos;
- (void) onMouseLeave: (Point) pos; - (void) onMouseLeave: (Point) pos;

View file

@ -288,6 +288,11 @@ updateScreenCursor (View *view)
return onReleaseFocus; return onReleaseFocus;
} }
-raise
{
return self;
}
- (void) onMouseEnter: (Point) pos - (void) onMouseEnter: (Point) pos
{ {
} }

View file

@ -213,6 +213,13 @@
return self; return self;
} }
-raise
{
top_panel (panel);
[self redraw];
return self;
}
-insert: (View *) view -insert: (View *) view
{ {
[objects insert: view]; [objects insert: view];