redecorating fixups. sync with bb cvs.
This commit is contained in:
parent
c5c5a80c7e
commit
9ccebf1118
2 changed files with 27 additions and 11 deletions
|
@ -2698,7 +2698,7 @@ void BlackboxWindow::shapeEvent(XShapeEvent *) {
|
||||||
#endif // SHAPE
|
#endif // SHAPE
|
||||||
|
|
||||||
|
|
||||||
bool BlackboxWindow::validateClient(void) {
|
bool BlackboxWindow::validateClient(void) const {
|
||||||
XSync(blackbox->getXDisplay(), False);
|
XSync(blackbox->getXDisplay(), False);
|
||||||
|
|
||||||
XEvent e;
|
XEvent e;
|
||||||
|
@ -2802,21 +2802,37 @@ void BlackboxWindow::changeBlackboxHints(BlackboxHints *net) {
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case DecorNormal:
|
case DecorNormal:
|
||||||
decorations |= Decor_Titlebar | Decor_Handle | Decor_Border |
|
decorations |= Decor_Titlebar | Decor_Border | Decor_Iconify;
|
||||||
Decor_Iconify | Decor_Maximize;
|
|
||||||
|
decorations = ((functions & Func_Resize) && !isTransient() ?
|
||||||
|
decorations | Decor_Handle :
|
||||||
|
decorations &= ~Decor_Handle);
|
||||||
|
decorations = (functions & Func_Maximize ?
|
||||||
|
decorations | Decor_Maximize :
|
||||||
|
decorations &= ~Decor_Maximize);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DecorTiny:
|
case DecorTiny:
|
||||||
decorations |= Decor_Titlebar | Decor_Iconify;
|
decorations |= Decor_Titlebar | Decor_Iconify;
|
||||||
decorations &= ~(Decor_Border | Decor_Handle | Decor_Maximize);
|
decorations &= ~(Decor_Border | Decor_Handle);
|
||||||
|
|
||||||
|
decorations = (functions & Func_Maximize ?
|
||||||
|
decorations | Decor_Maximize :
|
||||||
|
decorations &= ~Decor_Maximize);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DecorTool:
|
case DecorTool:
|
||||||
decorations |= Decor_Titlebar;
|
decorations |= Decor_Titlebar;
|
||||||
decorations &= ~(Decor_Iconify | Decor_Border | Decor_Handle);
|
decorations &= ~(Decor_Iconify | Decor_Border);
|
||||||
functions |= Func_Move;
|
|
||||||
|
decorations = ((functions & Func_Resize) && !isTransient() ?
|
||||||
|
decorations | Decor_Handle :
|
||||||
|
decorations &= ~Decor_Handle);
|
||||||
|
decorations = (functions & Func_Maximize ?
|
||||||
|
decorations | Decor_Maximize :
|
||||||
|
decorations &= ~Decor_Maximize);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ public:
|
||||||
Func_Iconify = (1l << 2),
|
Func_Iconify = (1l << 2),
|
||||||
Func_Maximize = (1l << 3),
|
Func_Maximize = (1l << 3),
|
||||||
Func_Close = (1l << 4) };
|
Func_Close = (1l << 4) };
|
||||||
typedef unsigned int FunctionFlags;
|
typedef unsigned char FunctionFlags;
|
||||||
|
|
||||||
enum Decoration { Decor_Titlebar = (1l << 0),
|
enum Decoration { Decor_Titlebar = (1l << 0),
|
||||||
Decor_Handle = (1l << 1),
|
Decor_Handle = (1l << 1),
|
||||||
|
@ -106,7 +106,7 @@ public:
|
||||||
Decor_Iconify = (1l << 3),
|
Decor_Iconify = (1l << 3),
|
||||||
Decor_Maximize = (1l << 4),
|
Decor_Maximize = (1l << 4),
|
||||||
Decor_Close = (1l << 5) };
|
Decor_Close = (1l << 5) };
|
||||||
typedef unsigned int DecorationFlags;
|
typedef unsigned char DecorationFlags;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Blackbox *blackbox;
|
Blackbox *blackbox;
|
||||||
|
@ -293,13 +293,13 @@ public:
|
||||||
{ return client.transientList; }
|
{ return client.transientList; }
|
||||||
BlackboxWindow *getTransientFor(void) const;
|
BlackboxWindow *getTransientFor(void) const;
|
||||||
|
|
||||||
inline BScreen *getScreen(void) { return screen; }
|
inline BScreen *getScreen(void) const { return screen; }
|
||||||
|
|
||||||
inline Window getFrameWindow(void) const { return frame.window; }
|
inline Window getFrameWindow(void) const { return frame.window; }
|
||||||
inline Window getClientWindow(void) const { return client.window; }
|
inline Window getClientWindow(void) const { return client.window; }
|
||||||
inline Window getGroupWindow(void) const { return client.window_group; }
|
inline Window getGroupWindow(void) const { return client.window_group; }
|
||||||
|
|
||||||
inline Windowmenu * getWindowmenu(void) { return windowmenu; }
|
inline Windowmenu * getWindowmenu(void) const { return windowmenu; }
|
||||||
|
|
||||||
inline const char *getTitle(void) const
|
inline const char *getTitle(void) const
|
||||||
{ return client.title.c_str(); }
|
{ return client.title.c_str(); }
|
||||||
|
@ -318,7 +318,7 @@ public:
|
||||||
|
|
||||||
inline void setWindowNumber(int n) { window_number = n; }
|
inline void setWindowNumber(int n) { window_number = n; }
|
||||||
|
|
||||||
bool validateClient(void);
|
bool validateClient(void) const;
|
||||||
bool setInputFocus(void);
|
bool setInputFocus(void);
|
||||||
|
|
||||||
void setFocusFlag(bool focus);
|
void setFocusFlag(bool focus);
|
||||||
|
|
Loading…
Reference in a new issue