fixed snap to edges with toolbar hidden
This commit is contained in:
parent
43e9d583c5
commit
fe9b1efde5
1 changed files with 8 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "Basemenu.h"
|
#include "Basemenu.h"
|
||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
|
#include "Screen.h"
|
||||||
|
|
||||||
// forward declaration
|
// forward declaration
|
||||||
class Toolbar;
|
class Toolbar;
|
||||||
|
@ -125,8 +126,13 @@ public:
|
||||||
|
|
||||||
inline const int &getX(void) const
|
inline const int &getX(void) const
|
||||||
{ return ((hidden) ? frame.x_hidden : frame.x); }
|
{ return ((hidden) ? frame.x_hidden : frame.x); }
|
||||||
inline const int getY(void) const
|
// const int getY(void) const;
|
||||||
{ return ((hidden || do_hide) ? frame.y_hidden : frame.y); }
|
inline const int getY(void) const {
|
||||||
|
if (do_hide) return screen.size().h();
|
||||||
|
else if (hidden) return frame.y_hidden;
|
||||||
|
else return frame.y;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void buttonPressEvent(XButtonEvent *);
|
void buttonPressEvent(XButtonEvent *);
|
||||||
void buttonReleaseEvent(XButtonEvent *);
|
void buttonReleaseEvent(XButtonEvent *);
|
||||||
|
|
Loading…
Reference in a new issue