Mykyta Holubakha
0b5391ed77
Properly construct event bitmasks
8 years ago
Drew DeVault
6d971af5c3
Turn swaybg into a shell surface
8 years ago
Drew DeVault
3bb880bf20
Implement configurable wrapping on bar ws scroll
8 years ago
D.B
ad7605675e
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
8 years ago
Drew DeVault
147a88260a
Fix #753
8 years ago
David Eklov
c0b7610c26
Enable windows to register to get notified when the mouse wheel is scrolled
8 years ago
David Eklov
250ddc66c6
Rename pointer_input::notify to indicate that is called on button clicks
8 years ago
David Eklov
a0c8799c80
Compute what workspace button is clicked
...
This commit does not do anything with this information other than logging it.
8 years ago
David Eklov
679c7b397c
Use int instead of wl_fixed_t for mouse coordinates
8 years ago
David Eklov
c805e42635
Extract workspace size computation from render_workspace_button()
...
Also remove some unnecessary strtup()s and rename a few variables and functions.
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
Mykyta Holubakha
c503bf1342
Suspend destruction of wss when creating views
8 years ago
D.B
ee67cd0ba1
Fix tabbed/stacked corner case #742
...
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.
9 years ago
David Eklov
b9d8cbabdd
Fix formatting guide violations (spaces instead of tabs)
9 years ago
David Eklov
c8a64305fd
Enable windows to register to get notified of pointer button events
9 years ago
David Eklov
d9bcea381a
Fix formatting guide violations (spaces instead of tabs)
9 years ago
David Eklov
bb35960e65
Move code to make a window a shell surface into seperate function
9 years ago
David Eklov
51204b33c1
Enable backgrounds and panels to be shell surfaces
...
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.
9 years ago
Zandr Martin
e07b8c8d7c
Merge branch 'master' into get-tree-command
9 years ago
Zandr Martin
15a324b0d3
implement `get_tree` command
9 years ago
Zandr Martin
a7b94f1324
typo in focus.h
9 years ago
Zandr Martin
d5e4fff345
resize command updates ( #713 )
9 years ago
David Eklov
26842ff383
Add get_log_level() to encapsulate v (current log level)
...
This patch also makes all global variable in log.c static.
9 years ago
Zandr Martin
889618d3ee
implement resize command for absolute dimensions
9 years ago
Zandr Martin
2298143d09
cleanup + add timeouts for pid_workspace list
9 years ago
Zandr Martin
beaa03344e
clean up pid/workspace stuff
9 years ago
Zandr Martin
03d79b41c7
semi-working (only non-client/server wayland apps)
9 years ago
Zandr Martin
0f1859ed25
messy, unfinished version
9 years ago
Zandr Martin
9ccc92705e
implement stable sort for lists
...
also change sort_workspaces() to use it
9 years ago
Denis Doria
009eaccd42
Clean up not used variables
9 years ago
Denis Doria
0ad7857f90
Included option floating_minimum_size
...
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.
9 years ago
Denis Doria
f1d5b89d3e
Initial work for floating view with sane values
9 years ago
Zandr Martin
c6c3a8e758
Implement sort_workspaces() function for outputs.
...
This seems to have resolved issue #669 for me.
9 years ago
Tomáš Čech
eda741d177
Match definition with declaration
9 years ago
Mykyta Holubakha
e73dde3b10
Support floating_scroll sideways
9 years ago
Mykyta Holubakha
0c495eecde
Remove FSB_GAPS_INNER and FSB_GAPS_OUTER
9 years ago
Mykyta Holubakha
0423c41a0f
Implemented configurable floating scroll behavior
9 years ago
Eric Engestrom
cc9d1cacbb
common: refactor sway_log()
...
This removes most preprocessor logic, leaving it only it the header.
9 years ago
Jasen Borisov
de007c9b58
Add input cmd for setting pointer accel profile.
9 years ago
Mikkel Oscar Lyderik
ddd5b69b99
border: clear buffer on fullscreen views
...
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.
9 years ago
Mikkel Oscar Lyderik
856ac7d5cc
Remove unused function
9 years ago
Mikkel Oscar Lyderik
3e1f78ab26
Add support for nested tabbed/stacked containers
9 years ago
Mikkel Oscar Lyderik
e226b20bd8
Reapply prev layout when exiting tabbed/stacked
9 years ago
Mikkel Oscar Lyderik
d26658fb35
Correctly determine default layout
9 years ago
Mikkel Oscar Lyderik
8d700fe008
Fix problems with floating windows
...
Makes any tabbed/stacked layout a container to separate from floating
windows which may be attached to a workspace.
9 years ago
Mykyta Holubakha
0f1cfdec61
Renamed to pango_markup
9 years ago
Mykyta Holubakha
53b53dd8c2
Added plaintext markup configuration
9 years ago
Drew DeVault
e5d2efbfc9
Style issue
9 years ago
Drew DeVault
84fae94ab9
Flesh out pango markup implementation
9 years ago