Commit Graph

1998 Commits

Author SHA1 Message Date
minus
50b09937b2 clean up apply_input_config 2016-07-18 20:12:49 +02:00
Drew DeVault
5a1d95ac2a Move backgrounds to back after arrange_windows
Fixes #769
2016-07-18 09:12:48 -04:00
Drew DeVault
c0e4522202 Merge pull request #764 from deklov/move-position-bug-02
Do not crash when handling the command 'move position'
2016-07-18 08:50:53 -04:00
Drew DeVault
2956645718 Merge pull request #768 from gpyh/patch-1
Packages link to the wiki page with instructions
2016-07-18 07:41:46 -04:00
Drew DeVault
435509c871 Merge pull request #767 from thejan2009/correct-container-titles
Construct titles of nested tabbed/stacked containers from app_id inst…
2016-07-18 07:38:35 -04:00
D.B
5d250f3da6 Construct titles of nested tabbed/stacked containers from app_id instead of title 2016-07-18 12:35:50 +02:00
Yacine Hmito
9b2780a6c2 Packages link to the wiki page with instructions
I wanted to make sure that NixOS users get the warning without polluting the README.
Turns out the "Install other distros" had plenty to say about supported packages, so I slightly restructured the page.
Now the README links to the wiki page.
2016-07-18 07:00:17 +02:00
David Eklov
d9eb49f3b1 Add missing entry to list of accepted arguments for the move command 2016-07-17 22:52:39 -05:00
David Eklov
d202ca2fd7 Do not crash when handling the command 'move position'
Sway expected 'move position' to be 'move position mouse'. If mouse is not
present in the command, Sway crashes.
2016-07-17 22:50:15 -05:00
Drew DeVault
31a7119c3d Remove disclaimer from default config
I realized we actually support everything in the default config now.
2016-07-17 21:31:34 -04:00
Drew DeVault
0aac17548e Merge pull request #763 from Hummer12007/patch-2
Fix a warning
2016-07-17 21:00:56 -04:00
Hummer12007
06f46955c0 Fix a warning 2016-07-18 00:57:49 +03:00
Drew DeVault
2530f952c9 Fix clang warning 2016-07-17 12:59:39 -04:00
Drew DeVault
ff363aa7f7 Fix bug with views behind backgrounds on ws switch 2016-07-17 12:57:40 -04:00
Drew DeVault
6d971af5c3 Turn swaybg into a shell surface 2016-07-17 11:55:05 -04:00
Drew DeVault
c8917395c0 Remove SIGSERV and SIGABORT handler
From now on let's just let the core dumps happen and ask users to
provide them.
2016-07-17 11:29:29 -04:00
Drew DeVault
3bb880bf20 Implement configurable wrapping on bar ws scroll 2016-07-17 11:26:38 -04:00
Drew DeVault
a9767ad2f7 Allow users to customize the cursor on clients
This also sets the default size to 16 and documents all of the other
environment variables in use in sway(1).
2016-07-17 11:26:30 -04:00
Drew DeVault
8be4ae70e7 Merge pull request #757 from siddharthist/master
readme: add nixos package
2016-07-16 17:07:29 -04:00
Drew DeVault
a655cb8751 Merge pull request #756 from Hummer12007/patch-1
Fix a memory leak
2016-07-16 17:06:38 -04:00
Langston Barrett
4442f79af8 readme: add nixos package 2016-07-16 23:04:58 +02:00
Hummer12007
cf7c6c5822 Fix a memory leak 2016-07-17 00:00:51 +03:00
Drew DeVault
d5ad8c9036 Merge pull request #754 from thejan2009/containers-inside-tabbed-stacked
Clarify which tabbed/stacked container we want (fixes #751)
2016-07-16 10:26:45 -04:00
D.B
ad7605675e refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed 2016-07-16 15:34:43 +02:00
Drew DeVault
7aeedf0264 Fix warning in window.c 2016-07-16 09:13:38 -04:00
Drew DeVault
147a88260a Fix #753 2016-07-16 09:09:22 -04:00
Drew DeVault
e66f813d49 Merge pull request #752 from deklov/bar-scroll-02
Change workspace with mouse wheel
2016-07-16 09:09:37 -04:00
David Eklov
e38d6b94b8 Change workspace when mouse wheel is scrolled while hovering over the bar 2016-07-15 19:14:31 -05:00
David Eklov
c0b7610c26 Enable windows to register to get notified when the mouse wheel is scrolled 2016-07-15 19:14:31 -05:00
David Eklov
250ddc66c6 Rename pointer_input::notify to indicate that is called on button clicks 2016-07-15 19:14:31 -05:00
Drew DeVault
a11277c88f Fix warning from unused daemon return value 2016-07-15 08:03:31 -04:00
Drew DeVault
6abbe04e75 Merge pull request #743 from deklov/panel-as-shell-03
Set panels/backgrounds' geometries correctly and don't render them ex…
2016-07-14 18:57:37 -04:00
David Eklov
8a232c8cfd Send command to sway to change workspace when workspace button is clicked 2016-07-14 17:18:01 -05:00
David Eklov
a0c8799c80 Compute what workspace button is clicked
This commit does not do anything with this information other than logging it.
2016-07-14 17:18:01 -05:00
David Eklov
679c7b397c Use int instead of wl_fixed_t for mouse coordinates 2016-07-14 17:18:01 -05:00
David Eklov
c805e42635 Extract workspace size computation from render_workspace_button()
Also remove some unnecessary strtup()s and rename a few variables and functions.
2016-07-14 17:18:01 -05:00
David Eklov
103954dd2b Setup to receive mouse click events and log them 2016-07-14 17:18:01 -05:00
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.
2016-07-14 17:18:01 -05:00
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.
2016-07-14 17:15:31 -05:00
David Eklov
6d94f77457 Revert "swaybg: Make swaybg a shell surface"
This reverts commit 99bda4afe2.

It turned out that code to handle swaybg as shell surface was broken so we don't
want to make swaybg a shell surface until this has been fixed.
2016-07-14 17:15:31 -05:00
Drew DeVault
1e95191900 Merge pull request #726 from Hummer12007/hwc
Spawn new views to target ws's focused container
2016-07-14 18:04:50 -04:00
Mykyta Holubakha
c503bf1342 Suspend destruction of wss when creating views 2016-07-15 00:22:53 +03:00
Mykyta Holubakha
a2bb280172 Spawn new views to target ws's focused container 2016-07-15 00:22:53 +03:00
Drew DeVault
136387144c Merge pull request #750 from deklov/sway-lock-01
swaylock: Add -f option to detach from the controlling terminal, fixe…
2016-07-14 13:06:42 -04:00
David Eklov
ea0a93c5c4 swaylock: Add -f option to detach from the controlling terminal, fixes #725 2016-07-13 08:20:40 -05:00
Drew DeVault
dff1e7f91b Merge pull request #749 from Hummer12007/patch-2
Enable using non-annotated tags in git-describe
2016-07-12 09:49:45 -04:00
Hummer12007
8fc9f503f9 Enable using non-annotated tags in git-describe
This fixes the version string
2016-07-12 13:44:19 +00:00
Drew DeVault
614aa28a7b Merge pull request #747 from deklov/clang-format-01
clang-format configuration for Sway's style as detailed in CONTRIBUTI…
2016-07-12 08:14:03 -04:00
Drew DeVault
e0e5d4a37e Merge pull request #748 from Hummer12007/x86fix
Fix build on x86
2016-07-12 08:13:43 -04:00
Mykyta Holubakha
ea7917784d Fix build on x86 2016-07-12 09:43:48 +00:00