Commit Graph

5083 Commits

Author SHA1 Message Date
Tarmack
36d9037f2c fix_edge_gaps: Allow negative values for outer gaps.
While allowing negative values for the outer gaps it is still prevented that negative values move windows out of the container. This replaces the non-i3 option for edge_gaps.
2018-10-13 17:42:49 +02:00
Brian Ashworth
2340b14eba bar_cmd_status_command: only reload current bar
Ideally, this will be replaced with an IPC barconfig_update event in the
near future
2018-10-13 08:00:01 -04:00
Brian Ashworth
00745d6280 Fix bar subcommand handler structs and selection 2018-10-13 08:00:01 -04:00
emersion
782a835175
Merge pull request #2828 from RyanDwyer/fix-locked-map-crash
Fix crash when view maps while locked
2018-10-13 13:22:35 +02:00
Ryan Dwyer
9190735947 Fix crash when view maps while locked
When locked, there is no active workspace so it must find the
focus_inactive workspace instead.

Additionally, this adds a check for if a view maps while there are no
outputs connected and handles it gracefully.
2018-10-13 19:15:04 +10:00
Drew DeVault
b80cf982ae
Merge pull request #2825 from RyanDwyer/fractional-scale-pixel-leaks
Fix pixel leaks when using fractional scaling
2018-10-12 23:12:56 +02:00
Ryan Dwyer
c699a86e47 Fix pixel leaks when using fractional scaling
The basic idea here is to apply rounding after scaling. It's not as
simple as this, though, and I've detailed it in the comments for a
function.

In order to fix some pixel leaks in the title bar, I found it easier to
change how we place rectangles to fill the area. Instead of placing two
rectangles across the full width above and below the title and having
shorter rectangles in the inner area, it's now pieced together in
vertical chunks. This method involves drawing two less rectangles per
container.
2018-10-12 22:36:11 +10:00
Ryan Dwyer
f52af18e0d
Merge pull request #2821 from meakio/master
fix: cmd_sticky crash sway with empty container
2018-10-12 09:21:48 +10:00
Ryan Dwyer
27fb146121
Merge branch 'master' into master 2018-10-12 08:55:29 +10:00
meak
9e96ce4a46 fix: cmd_sticky crash sway with empty container 2018-10-11 22:29:41 +02:00
Drew DeVault
e17a99287d
Merge pull request #2824 from chtison/master
Fix documentation of output
2018-10-11 22:26:34 +02:00
chtison
5ab7755649 Fix documentation of output 2018-10-11 22:14:56 +02:00
emersion
8dadfd42df
Merge pull request #2817 from trmendes/libinput-disable-touchscreen-support
Add libinput send_events config for touch
2018-10-10 23:52:29 +02:00
Thiago Mendes
8e147b3f1d
Add libinput send_events config for touch 2018-10-10 23:15:31 +02:00
Drew DeVault
5d19906556
Merge pull request #2806 from v-gu/add-libinput-support-for-keyboard
add libinput config for keyboard
2018-10-10 17:07:38 +02:00
Drew DeVault
0a36d14d7a
Merge pull request #2798 from RedSoxFan/bar-bindsym
Implement bar bindsym
2018-10-10 17:07:02 +02:00
Ian Fan
cd6917d4a8
Merge branch 'master' into bar-bindsym 2018-10-10 12:23:04 +00:00
Drew DeVault
782ed19bc3
Merge pull request #2814 from Emantor/mouse-warping-container
Add mouse_warping container
2018-10-10 14:06:14 +02:00
Ryan Dwyer
ed33d95b6a
Merge branch 'master' into mouse-warping-container 2018-10-10 21:50:29 +10:00
Drew DeVault
155e863ead
Merge pull request #2811 from RyanDwyer/fix-floating-click-events
Fix floating click events
2018-10-10 13:44:55 +02:00
Rouven Czerwinski
41991542ca Add mouse_warping container
This option always moves the cursor into the middle of the container if the warp
variable is true in seat_set_focus_warp.

Fixes #2577
2018-10-10 12:45:21 +02:00
emersion
87bc707e9b
Merge pull request #2812 from RyanDwyer/fix-version-messages
Fix program name in version strings
2018-10-10 10:57:45 +02:00
Ryan Dwyer
fa8959532b Fix program name in version strings
When running swaymsg -v, the version returned is actually the version of
swaymsg itself, yet the message displayed was "sway version <version>".
This can create confusion if users update sway and swaymsg but don't
restart sway, then use swaymsg to check the version.

This patch changes the wording to be "swaymsg version <version>"
instead, and likewise for swaybar.

To get the version of a running sway instance, users should run swaymsg
-t get_version.
2018-10-10 18:34:50 +10:00
Ryan Dwyer
416bb7a214 Fix floating click events
* Set focus to a floating container when clicking its title bar.
* Raise floating when user clicks title bar or decorations (in the
seat_begin functions).
* In container_at, it only returned a floating container if the user had
clicked the surface. This makes it use floating_container_at instead.
2018-10-10 16:58:32 +10:00
Drew DeVault
2bd561d2b7
Merge pull request #2810 from RyanDwyer/fix-docs-backandforth
Fix back_and_forth documentation
2018-10-10 01:58:07 +02:00
Ryan Dwyer
8c98bde20d Fix back_and_forth documentation 2018-10-10 09:41:37 +10:00
Drew DeVault
ab6423f9b9
Merge pull request #2809 from mwenzkowski/fix-view_autoconfigure
Fix undesirable height change of floating views
2018-10-10 00:46:15 +02:00
mwenzkowski
fd645a2a88 Fix undesirable height change of floating views
In view_autoconfigure the height of the view is adjusted if the parent
container has a tabbed/stacked layout. Previously this height change
would also be applied to floating views, although it is not needed for
them.
2018-10-09 21:22:15 +02:00
Vincent Gu
073aa4149f add libinput config for keyboard
add send_events support
2018-10-09 22:03:27 +08:00
Drew DeVault
43875c437b
Merge pull request #2805 from RyanDwyer/fix-resize-return-value
resize: Determine if anything changed using before/after check
2018-10-09 15:42:43 +02:00
Drew DeVault
53164c4aa2
Merge pull request #2803 from RedSoxFan/fix-2802
Only consider tiling views for gaps outer
2018-10-09 15:37:42 +02:00
Ryan Dwyer
61699a1146 resize: Determine if anything changed using before/after check
Returning a boolean from container_resize_tiled and resize_tiled doesn't
work in all cases. This patch changes it back to void and does a
before/after check to see if the container was resized.
2018-10-09 22:25:21 +10:00
Brian Ashworth
d3f0e52784 bar-bindsym: address ianyfan's comments 2018-10-09 08:12:46 -04:00
Brian Ashworth
1c969e86f5 Implement bar bindsym 2018-10-09 08:12:46 -04:00
Drew DeVault
e143c9613d
Merge pull request #2804 from Emantor/swaynag-double-free
config: remove double free of config->swaynag_command
2018-10-09 13:37:20 +02:00
Rouven Czerwinski
1eb0dc2922 config: remove double free of config->swaynag_command
Fixes #2796
2018-10-09 13:14:02 +02:00
Brian Ashworth
5e9c61ac23 Only consider tiling views for gaps outer 2018-10-08 18:50:32 -04:00
Drew DeVault
4bebee620f
Merge pull request #2772 from RyanDwyer/improve-popup-damage
Only damage popups when popups have damage
2018-10-09 00:02:36 +02:00
Brian Ashworth
a999269e1c
Merge pull request #2782 from RyanDwyer/popup-during-fullscreen
Implement popup_during_fullscreen
2018-10-08 15:28:09 -04:00
Brian Ashworth
3f328b6276
Merge branch 'master' into popup-during-fullscreen 2018-10-08 15:18:49 -04:00
emersion
a03955f936
Merge pull request #2799 from ianyfan/commands
commands: when setting urgency, check container is not null
2018-10-08 19:17:40 +02:00
Ian Fan
efb123899f commands: when setting urgency, check container is not null 2018-10-08 17:48:25 +01:00
emersion
16e727a654
Merge pull request #2795 from RedSoxFan/swaynag-disable
Allow swaynag to be disabled
2018-10-08 16:24:46 +02:00
Brian Ashworth
09c3c33081 Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
emersion
45f2cd0c73
Merge pull request #2793 from emersion/disable-swaybg
Allow swaybg to be disabled
2018-10-08 15:50:56 +02:00
Ryan Dwyer
d21d2c8665 Remove duplicate code 2018-10-08 23:50:43 +10:00
emersion
1c1fbd49db
Merge pull request #2794 from johnae/fix-opacity-crashing-bug
Check if there is a current container before setting its opacity
2018-10-08 15:42:19 +02:00
Ryan Dwyer
b8002fc0c4 Look for any ancestor when checking for fullscreen exit 2018-10-08 23:39:35 +10:00
Ryan Dwyer
88317b59ce Use current state when rendering transient containers 2018-10-08 23:27:19 +10:00
emersion
ab3a397d58 Fix memory leak in status_command handler 2018-10-08 15:21:20 +02:00