mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fixing panel placement when screen size was changed. Updating main menu to use MenuTooltip code.
When screen dimensions are shrinked, panel will be moved at the correct location but will not be resized correctly. Also, when screen dimensions are changed again, increasing sizes, panel would not catch that. Here, 'the hack' is to track root window dimension changes and react on that, since relaying on _NET_WORKAREA is not always good; struts dimentions affects workarea size. Main menu now has tooltips, which is Comment value from .desktop files. Also, since XdgMenuReader directly plays with MenuItem, MenuItem::init_extensions() is used to reset uncommon values.
This commit is contained in:
@ -54,6 +54,8 @@ public:
|
||||
|
||||
void show(void);
|
||||
void hide(void);
|
||||
void update_size_and_pos(bool create_xid, bool update_strut);
|
||||
void update_size_and_pos(bool create_xid, bool update_strut, int X, int Y, int W, int H);
|
||||
int handle(int e);
|
||||
void load_applets(void);
|
||||
|
||||
|
Reference in New Issue
Block a user