Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | try to fix again | Guido Cella | 2020-09-08 | 1 | -4/+1 |
| | | | | Calculate x and y of usable_area, not just width and heigth. | ||||
* | fix multi monitors | Guido Cella | 2020-09-08 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | If you don't recalculate the monitor's geometry before arranging, clients get arranged in the first monitor. I don't understand why this fixes the bug since tile() uses m->w rather than m->m, nor why it needs to be recalculated after creating the monitor but sway does it too. Although not necessary to fix the bug I also made arrangelayer() do like sway again and recalculate usable_area instead of reusing m->m, since m->m seems to be incorrect until it gets recalculated shortly after in arrange(), so I suspect that leaving usable_area = m->m will cause issues under certain circumstances. Someone with a multi-monitor setup or better knowledge of Wayland may be able to figure out the cause of the bug. For now, this makes layer shell work. | ||||
* | remove variable | Guido Cella | 2020-09-06 | 1 | -4/+3 |
| | |||||
* | use size_t for lengths | Guido Cella | 2020-09-05 | 1 | -4/+4 |
| | |||||
* | rename variable and merge 2 lines | Guido Cella | 2020-09-05 | 1 | -3/+2 |
| | |||||
* | simplify | Guido Cella | 2020-09-05 | 1 | -10/+4 |
| | |||||
* | use unsigned int for loop indexes | Guido Cella | 2020-09-04 | 1 | -3/+3 |
| | |||||
* | Don't let overlays lose focus | Guido Cella | 2020-09-04 | 1 | -2/+20 |
| | | | | | if you open a new window while an overlay is mapped, the overlay should stay focused | ||||
* | fix restoring pointer focus | Guido Cella | 2020-09-04 | 1 | -1/+6 |
| | | | | | I don't know why I thought it was working before. Maybe I should go do something else. | ||||
* | improve code style | Guido Cella | 2020-09-04 | 1 | -4/+4 |
| | |||||
* | remove comment | Guido Cella | 2020-09-04 | 1 | -1/+1 |
| | | | | | I don't know why it wasn't working before but now it does ¯\(ツ)/¯ (it wasn't caused by the just removed code either) | ||||
* | remove mysterious code | Guido Cella | 2020-09-04 | 1 | -7/+0 |
| | | | | | Why would a surface that's not keyboard interactive get focused? Let's remove this for now and see if issues arise. | ||||
* | focus the previous client in the similar code too | Guido Cella | 2020-09-04 | 1 | -2/+1 |
| | |||||
* | refocus old client | Guido Cella | 2020-09-04 | 1 | -3/+1 |
| | | | | | | When a layer surface is destroyed focus should be returned to the last client. Luckily if there are multiple overlays the previous overlay still gets focused. | ||||
* | fix alhpabetical order | Guido Cella | 2020-09-04 | 1 | -8/+8 |
| | |||||
* | simplify focus leave condition | Guido Cella | 2020-09-04 | 1 | -7/+2 |
| | |||||
* | reuse motionnotify() | Guido Cella | 2020-09-04 | 1 | -10/+8 |
| | |||||
* | enable pointer on layer surfaces | Guido Cella | 2020-09-04 | 1 | -5/+49 |
| | |||||
* | more TODOs | Guido Cella | 2020-09-03 | 1 | -2/+3 |
| | |||||
* | fix focus leave condition | Guido Cella | 2020-09-03 | 1 | -3/+4 |
| | | | | needs refactoring and testing | ||||
* | send pressed keys to topmost layer surface | Guido Cella | 2020-09-03 | 1 | -2/+3 |
| | |||||
* | update README | Guido Cella | 2020-08-29 | 1 | -1/+0 |
| | |||||
* | remove blank line | Guido Cella | 2020-08-29 | 1 | -1/+0 |
| | |||||
* | don't handle failed calloc | Guido Cella | 2020-08-29 | 1 | -2/+0 |
| | | | | be consistent with the rest of the code | ||||
* | order variables more how like they are initialized | Guido Cella | 2020-08-29 | 1 | -1/+1 |
| | |||||
* | simplify make clean | Guido Cella | 2020-08-28 | 1 | -1/+1 |
| | |||||
* | Reuse render() and struct timespec *now | Guido Cella | 2020-08-28 | 1 | -36/+14 |
| | |||||
* | reuse m->m | Guido Cella | 2020-08-27 | 1 | -4/+1 |
| | |||||
* | remove comment | Guido Cella | 2020-08-27 | 1 | -2/+0 |
| | | | | | wlr_output_layout_get_box internally calls wlr_output_effective_resolution | ||||
* | set a monitor geometry only when creating it | Guido Cella | 2020-08-27 | 1 | -3/+4 |
| | | | | Lets layers with an exclusive area shrink the usable area | ||||
* | render in the same order as sway | Guido Cella | 2020-08-27 | 1 | -2/+2 |
| | |||||
* | update make clean | Guido Cella | 2020-08-26 | 1 | -1/+1 |
| | |||||
* | correct variable name | Guido Cella | 2020-08-26 | 1 | -1/+1 |
| | |||||
* | rename functions too | Guido Cella | 2020-08-26 | 1 | -19/+19 |
| | |||||
* | remove extra space | Guido Cella | 2020-08-26 | 1 | -1/+1 |
| | |||||
* | render layer surfaces | Guido Cella | 2020-08-26 | 1 | -0/+43 |
| | |||||
* | improve naming | Guido Cella | 2020-08-26 | 1 | -62/+63 |
| | | | | | | | rename Layer to LayerSurface; layer should refer to overlay, top, bottom or background LayerSurface variables are always called layersurface wlr_layer_surface_v1 variables are always called wlr_layer_surface | ||||
* | layer shell initial attempt | Guido Cella | 2020-08-24 | 3 | -2/+688 |
| | |||||
* | set up interfaces in same order as sway | Devin J. Pohly | 2020-08-23 | 1 | -1/+1 |
| | | | | This makes it easier to compare WAYLAND_DEBUG logs when troubleshooting. | ||||
* | enable gamma control | Guido Cella | 2020-08-22 | 1 | -0/+2 |
| | |||||
* | cleanup function to match dwm | Devin J. Pohly | 2020-08-19 | 1 | -17/+20 |
| | |||||
* | fix usage to match | Devin J. Pohly | 2020-08-19 | 1 | -1/+1 |
| | |||||
* | we're not really using the log | Devin J. Pohly | 2020-08-19 | 1 | -20/+4 |
| | |||||
* | this is technically barf too I guess? | Devin J. Pohly | 2020-08-19 | 1 | -2/+1 |
| | |||||
* | only call updatewindowtype for x11 windows | Devin J. Pohly | 2020-08-19 | 1 | -9/+7 |
| | |||||
* | handle NULL return from backend_autocreate | Devin J. Pohly | 2020-08-18 | 1 | -1/+2 |
| | | | | Fixes #44. | ||||
* | add macro for fatal errors | Devin J. Pohly | 2020-08-18 | 1 | -30/+14 |
| | | | | dwm lets the OS do cleanup if the program errors out | ||||
* | Use SIGCHLD handler from dwm | Devin J. Pohly | 2020-08-18 | 1 | -0/+15 |
| | | | | Fixes #46. | ||||
* | make this marginally less ugly | Devin J. Pohly | 2020-08-16 | 1 | -3/+2 |
| | |||||
* | wlr_session_change_vt is NULL safe | Devin J. Pohly | 2020-08-16 | 1 | -4/+1 |
| |