Commit Graph

253 Commits

Author SHA1 Message Date
Emmanuel Lepage Vallee b1a839aafe dock: Set the right window type
Fix a Compton issue when using transparent backgrounds.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee eb8f807867 taglist: Use Awesome official tag index.
No more hacks, all it caused was hidding issues deeper and having
asserts() after a few weeks of runtime.

Awesome tag.index is still buggy, but I will fix it and write the
proper tests so it stay fixed. No more hacks.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 15ee0a3d70 alttab: Show on the right screen. 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee abd3d55554 box: Set the screen if specified in the arguments
The old logic had some dark tricks to set this, but here is a clean
solution.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 5eab124677 context: Add screen property 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee e29771fa48 base: Fix broken move logic
Sometime I wonder WTF I was on when I wrote some parts or Radical...

I guess I can call it university stress...

Note that this will probably cause a bunch of regressions because
some other code expected the garbage I was creating.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 0e00d45cd4 style.arrow: Add custom radius support 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee a58ac33afb smart_wibox: Do not call set_position when the area reamin the same.
This is a band-aid on top of deeper issues when layout_changed is
wrongly called. This should prevent menus moving in random places
when the mouse is moved. Note that this commit wont stop them from
moving when their size really change.

This is harder to fix as all the "outside of the workarea" checks
still need to be performed and in many cases, such as async loaded
menus, the move itself is really necessary while in others it is
unwanted.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 3488622ac3 widgets: Add a slider widgets
Requires a recent Awesome version.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 1a02eb0b93 infoshape: Misc fixes 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee b0f5c663e6 common: Re-use icon_per_state 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 26a6c05d5e dock: Do not use ontop for persistent docks 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee ddadf6bd3e grid: Fix some bugs 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee f61feaff46 dock: Use floor instead of ceil for the optimal size
In case of a "0" margin, this caused the dock to be taller than
the workarea.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 687e21dcdc dock: Track workarea changes 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 0618a8d18c item.layout: Use the checkbox widget 2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 7600e4b888 widget: Rewrite the checkbox as a 'real' widget
It was previously an image used by imagebox. This doesn't
support multi DPI and was an artefact of Awesome 3.4.
2016-12-25 21:59:55 -05:00
Emmanuel Lepage Vallee 9be99465f2 grid: Use the 'real' grid layout 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 30084a84d5 widgets: Add a grid layout [WIP]
In a quest to get rid of all fit/draw monkeypatching, this
commit add a proper grid layout. It is currently as good
as the old layout/grid.lua hack, but not "correct" used outside
of Radical menus (swap/insert/remove are also broken) and it
fail to handle many corner case.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee b850b334ba layoutmenu: Fix a porting error 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 2e9e7b1851 sub-menu: Fix horizontal item arrow 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 1c34c56d0b base: Remove setup_drawable callback
As this was the last step in the base constructor, it could be
done in each menu type without the callback and extra code.

The only reason this existed was to allow menu "sub classes"
that override this function. However, since this was rewritten,
it was no longer used, so for the sake of simplicity, I remove
this feature.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 84f19c51a1 scroll: Fix scroll-up 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 5c05c431e7 piechart: Drop cache mechanism and update indentation 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee dfa69714f5 piechart: Fix cache and update API 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 1ca9bb2f26 fkey: Rewrite (with some more sanity) 2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee eaa389bd5f widgets: Add text widget
Automatic text scaling to fill an area
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 825ff024ef More bug fixes
This is a step forward to stabilize Radical again. Most of impl/ and widgets/
code is still a mess, but the other modules slowly start to be maintainable
again. The road is still long before the Radical code is good enough to go
into Awesome. It will get there, eventually.
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee f3124b761d quality: Fix more luacheck warnings
And remove unmaintained and broken files
2016-12-25 21:59:50 -05:00
Emmanuel Lepage Vallee 2d0a957506 quality: Begin to fix luacheck warnings 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 6244ed7c26 api: Update file to match new upstream Awesome APIs
Also has some bug fixes mixed in the patch.

The Radical placement API is now fully upstreamed.
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 7506a8f49d base: Fix scroll, filter and embedded menus 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee ffd1e8003a base: Fix item filtering 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 1310815b6e alttab: Fix the top row 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 9649f04314 Fix the fkey widget 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee aeb9aeb1b8 impl: Adapt to new upstream API changes
* The screen API was broken
 * Many awful.tag, client and screen methods were deprecated
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee e18f664de0 placement: Add more methods 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee b3fa0b9a23 placement: Fix more regressions from the re-write 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee cbc5e6919f placement: Re-introduce many placements features lost during the re-write
The menu can be attached to a widget or the mouse again, and more

This commit also fix some tasklist/taglist issues and introduce minor
features like item.shape.
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee ac402846a3 infoshapes: Fix borders 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee b167117958 bar: Support border color
Apparently this never worked as documented
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 21f735600c dock: Fix a race condition
The size wasn't always right
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee b65ddbed0e cleanup: Remove duplicated logic 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 0be013f1f7 filter: Rewrite the filter widget 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 9ea34d4003 cleanup: Mutualize some code and fix embed menus 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee 2af6ad83e2 item.layout.centerred: Fix regressions 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee b528ec9730 box: Fit position 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee d43e1170d1 context: Fix some regressions 2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee f48ede52f9 cleanup: Port scrolling to Awesome 3.6 visible widget API
It still doesn't work, but at least there is no logic duplication
with Awesome anymore.
2016-12-25 21:59:37 -05:00
Emmanuel Lepage Vallee a1abd2f57a cleanup: Remove overlay/underlay hacks, re-implement as widgets container
There is a new widget called `infoshapes`. It support all the features
from the underlay system, but is a lot less intrusive. This allow to
make some code simpler.

This is another step in getting rid of all the hacks.
2016-12-25 21:59:37 -05:00