mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qwaq] Raise windows when clicked
This commit is contained in:
parent
af0333a172
commit
35bb3a3854
4 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -288,6 +288,11 @@ updateScreenCursor (View *view)
|
||||||
return onReleaseFocus;
|
return onReleaseFocus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-raise
|
||||||
|
{
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
- (void) onMouseEnter: (Point) pos
|
- (void) onMouseEnter: (Point) pos
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue