| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Panels were explicitly rendered by calling wlc_surface_render in
handle_output_pre_render. Calling wlc_surface_render does not set the
surface's geometry (like wlc_view_set_geometry does). Sway did not call
wlc_view_set_geometry for panels, so wlc defaulted their geometry to be at
the origin. This is not correct for bars unless their location is top.
Furthermore, for a surface to receive pointer events, its mask has to be
set to visible. This causes wlc to render these surfaces, causing panels
and backgrounds to be rendered twice.
This commit makes panels and surfaces visible, sets the correct geometries
and removes the code that explicitly rendered them.
|
|
|
|
|
| |
This code had some issues. Remove it now so that we can start clean and fix
it later.
|
| |
|
|
|
|
|
|
| |
Tabbed/stacked containers are now created only if a view is present on
the workspace. If a view is created on previously empty tabbed/stacked
workspace, it gets wrapped in a container.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Prior to this commit all windows (e.g. shell surfaces) were handled the same
way in handle_view_created. Since backgrounds and panels have to be treated
differently, they could not be shell surfaces. This changes checks whether
a client is a background or a panel in handle_view_created and exists to
let them be dealt with elsewhere.
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
This patch also makes all global variable in log.c static.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
also change sort_workspaces() to use it
|
| |
|
|
|
|
|
| |
Values cannot be negative or 0; if so uses the default 75x50.
Uses the same syntax as i3: floating_minimum_size <width> x <height>, although the x can be anything.
|
| |
|
|
|
|
| |
This seems to have resolved issue #669 for me.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This removes most preprocessor logic, leaving it only it the header.
|
| |
|
|
|
|
|
|
| |
This patch makes sure to clear the border buffer of fullscreen view so
the border doesn't get drawn behind a fullscreen view, which would be
visible if the view was transparent.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Makes any tabbed/stacked layout a container to separate from floating
windows which may be attached to a workspace.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Makes it possible to set default layout style for new windows and new
floating windows.
Close #556
|
|
|
|
|
|
|
|
|
|
| |
I made this configurable but I didn't make the command for it. That's
left as an exercise to an eager contributor.
mod_scroll_behavior [gaps inner|gaps outer]
Would merge implementions of more behaviors for mod+scroll, if anyone
has some neato ideas.
|
| |
|
|
|
|
|
|
|
|
|
| |
The borders are implemented as a surface/buffer attached to each view
which is sent to and rendered by wlc in the view_pre_render callback.
All the drawing logic is handled in sway/border.c and all the logic for
calculating the geometry of the border/view is handled in
`update_geometry` in sway/layout.c (same place as gaps are calculated).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Note that this segfaults ALL THE TIME in wlc code. Paging @Cloudef for
help, I'm at a loss.
|