Drew DeVault
298f56353e
Merge branch 'master' into server-decoration
8 years ago
Drew DeVault
d158e18308
Fix Firefox address bar thing
...
And probably some other stuff too
8 years ago
Josip Janzic
400998d6d2
Add mouse button bindings
...
Adds support for bindings like:
bindsym button3 floating toggle
bindsym $mod+button3 floating toggle
8 years ago
Drew DeVault
a5c07dde6a
Implement KDE's server-side decoration protocol
8 years ago
Drew DeVault
537261f23f
Fix handling of floating windows
8 years ago
Drew DeVault
51143a75af
Implement no_focus
...
Ref #2
8 years ago
Jerzi Kaminsky
cf5e764c7f
Disambiguate get_*_policy() and get_*_policy_mask()
8 years ago
Zandr Martin
2d46fc5602
prevent fullscreen focus thievery
...
I believe this fixes #1102
8 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Mykyta Holubakha
4eae9b33e8
xdg-positioner: log window placement
8 years ago
Mykyta Holubakha
006bd0bc3f
Handle xdg-positioner stuff
8 years ago
Mykyta Holubakha
7520607b8d
Properly place windows with xdg-positioner
8 years ago
Drew DeVault
527c259d06
Fix #1008
8 years ago
Drew DeVault
8cef81d6f2
Handle some more memory allocation failures
8 years ago
Drew DeVault
d75a747a3d
Handle config-related allocation failures
8 years ago
D.B
6fb4b6737a
add workspace_layout to container
...
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type.
8 years ago
Drew DeVault
39cf9a82f7
Enforce command policies
8 years ago
Drew DeVault
0d395681fe
Enforce mouse permissions
8 years ago
Drew DeVault
8aeeacf178
Enforce keyboard permissions
8 years ago
Drew DeVault
ffdbb9d050
Enforce fullscreen permissions
8 years ago
Drew DeVault
4cba91803e
Revert "Fixes dealing with workspace_layout and related bugs [rfc]"
8 years ago
D.B
166c2a3687
generalize wrapping views under workspaces
8 years ago
D.B
571321a1d8
add workspace_layout, ensure ws is always L_HORIZ
...
Add swayc_change_layout function, which changes either layout or
workspace_layout, depending on the container type. Workspace being
always L_HORIZ makes this much more i3-compatible.
8 years ago
D.B
0ddc4279d1
wrap workspace's child into a container if needed
...
If workspace has stacked/tabbed layout, its direct children should be
wrapped into a container which enables them to draw the titlebar.
8 years ago
D.B
8264fedce6
fix for_window [] move scratchpad
...
- move wlc_view_set_mask before applying window criteria
- check parent_container because container in scratchpad doesn't have a
parent
8 years ago
Nicolas Cornu
6ced4098dc
fix for click on title_bar
...
- Check null pointer for swayc_parent_by_type
- Split lines to follow coding style
8 years ago
Nicolas Cornu
37065cd0c4
add click on title_bar to focus a container
8 years ago
Zandr Martin
511eed90cd
squash commits, move enum into resize.c
8 years ago
Drew DeVault
0913eff915
Add support for * input configs
...
Closes #852
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
D.B
aa292db8d1
Fix switch to prev ws on handle_view_created
...
Switching back to original workspace should be done only if workspace
was switched while appending new view.
8 years ago
Tony Crisci
4344fe5011
bugfix: focus container on output when focused
...
Focus the container on the output (not the output itself) when an output is
focused.
This is intended to fix a bug where borders are not updated correctly when
switching the vt away/back to sway.
8 years ago
Tony Crisci
2f65100bee
Remove dead global locked_view_focus
...
The value of `locked_view_focus` is always false. Remove dead code associated
with this variable to simplify things.
8 years ago
Tony Crisci
d731d6a846
Bugfix: descend focus stack on new window focus
...
When switching back to a workspace after new window creation, it is now
necessary to descend the focus stack into the focused container of the
workspace to determine which container should get the focus. This is because
the `set_focused_container()` function no longer automatically descends into
the focus stack to find the correct view to focus.
8 years ago
Tony Crisci
b39249508f
Refactor functions to update container borders
...
Replace `update_view_border()` with `update_container_border()`. The latter
should handle both the case where the container is a view or if the container
has children.
8 years ago
Zandr Martin
c0683a0444
remove outdated (when wlc commit merged) comment
8 years ago
Zandr Martin
d0a0d5e03c
update handler to get pid from wlc for all views
8 years ago
Drew DeVault
3f83968d30
Fix swaybg sizing on hidpi outputs
8 years ago
Drew DeVault
9661272224
Merge remote-tracking branch 'origin/hidpi'
8 years ago
Zandr Martin
a3980d456d
third try for #678
8 years ago
Drew DeVault
11e7ca044c
Update hidpi support to latest wlc API
8 years ago
Drew DeVault
6ea02f3064
Initial pass on HiDPI support
8 years ago
D.B
80858c1f57
don't passthrough a floating_scroll event to focused window
8 years ago
Mykyta Holubakha
976e48d79f
Initial work on window events
8 years ago
Drew DeVault
095353d91d
Remove arrange_windows from post-render
...
Fixes #741
8 years ago
Drew DeVault
2530f952c9
Fix clang warning
8 years ago
Drew DeVault
6d971af5c3
Turn swaybg into a shell surface
8 years ago
D.B
ad7605675e
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
8 years ago
David Eklov
5c4f52f953
Set panels' geometries correctly and don't render them explicitly
...
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.
8 years ago
David Eklov
4bb45abc46
Don't treat backgrounds as shell surfaces
...
This code had some issues. Remove it now so that we can start clean and fix
it later.
8 years ago