Commit graph

1609 commits

Author SHA1 Message Date
Chang Liu 91d2a505b2 Plug two memory leaks
Plug two memory leaks introduced in the border drawing code.
2016-04-12 12:35:50 +12:00
Drew DeVault 3b5a8cb40d Merge pull request #580 from mikkeloscar/handle-realloc-fail
swaylock: Handle possible fail on password realloc
2016-04-09 18:15:50 -04:00
Mikkel Oscar Lyderik f8bb487ddb swaylock: Handle possible fail on password realloc 2016-04-10 00:01:05 +02:00
Drew DeVault a71ca65d88 Merge pull request #579 from mikkeloscar/new_view-geometry
Don't init desired width/height on new_view
2016-04-09 17:38:43 -04:00
Mikkel Oscar Lyderik cfea40dce3 Don't init desired width/height on new_view
When creating a new view, wlc usually returns an initial geometry with
size 1x1. Setting those values as desired width/height causes a problem
for some windows (QT5) because they don't request a new geometry for
instance when made floating, so the floating window becomes 1x1.

To fix this problem we can just omit setting the desired width/height on
new_view and instead let the clients request a certain size if they feel
like it. e.i. gnome-calculator.

Fix #578
2016-04-09 23:20:26 +02:00
Mikkel Oscar Lyderik a7f26939c2 Only update geometry of single floating view 2016-04-09 22:51:41 +02:00
Drew DeVault 9f4df8b758 Merge pull request #572 from fluxchief/swaylock-flush
Improve swaylock event flushing
2016-04-04 09:37:41 -04:00
Drew DeVault 5a1a0cf910 Merge pull request #574 from fluxchief/parse-border-color
Add border color commands
2016-04-03 16:46:34 -04:00
Kevin Hamacher b6e2b6add9 Add border color commands 2016-04-03 17:14:14 +02:00
Mikkel Oscar Lyderik 5b8902ea9c Merge pull request #575 from fluxchief/border-color-fix
Use border background color as border background
2016-04-03 17:07:55 +02:00
Kevin Hamacher 115b482ed8 Use border background color as border background 2016-04-03 16:52:40 +02:00
Mikkel Oscar Lyderik 5be624ca16 Merge pull request #568 from crondog/fixborders
Fix window borders
2016-04-03 02:36:50 +02:00
crondog b02be709cd Fix window borders
This fixes floating borders when moving outside of the output. Not sure what
happens with dual screen as I only have 1 monitor
2016-04-03 10:37:16 +10:00
Kevin Hamacher 3b0d9de270 Improve swaylock event flushing 2016-04-03 00:50:34 +02:00
Drew DeVault ef45bac131 Merge pull request #562 from fluxchief/border-endian
improve endianess handeling
2016-04-02 16:29:48 -04:00
Kevin Hamacher 3953b064f5 improve endianess handeling 2016-04-02 21:16:57 +02:00
Mikkel Oscar Lyderik 4885a6c423 Merge pull request #569 from 1ace/master
Fix spelling mistakes
2016-04-02 19:09:12 +02:00
Eric Engestrom 3e8081514d Fix spelling mistakes 2016-04-02 16:00:05 +01:00
Drew DeVault 0d4c31edcd Merge pull request #565 from mikkeloscar/fix-pointer-crash
Fix pointer related crash when stacked/tabbed
2016-03-31 10:51:44 -04:00
Mikkel Oscar Lyderik 258e31ccdf Fix pointer related crash when stacked/tabbed
Fix #564
2016-03-31 16:39:42 +02:00
Drew DeVault 60c599a5a9 Merge pull request #563 from mikkeloscar/fix-border-reset
Correctly reset border geometry
2016-03-31 07:59:26 -04:00
Drew DeVault d94d46fe69 Merge pull request #561 from fluxchief/swaylock
swaylock: improve graphical feedback
2016-03-31 07:59:21 -04:00
Mikkel Oscar Lyderik 66e8b4d5de Correctly reset border geometry 2016-03-31 13:51:27 +02:00
Kevin Hamacher ce22ea1526 swaylock: improve graphical feedback 2016-03-31 13:49:59 +02:00
Drew DeVault f0b33df384 Merge pull request #560 from mikkeloscar/add-new_window-new_float
Add cmds new_window and new_float
2016-03-31 07:43:05 -04:00
Mikkel Oscar Lyderik 7be476c115 Add cmds new_window and new_float
Makes it possible to set default layout style for new windows and new
floating windows.

Close #556
2016-03-31 12:42:20 +02:00
Mikkel Oscar Lyderik 6db92bbb99 Merge pull request #558 from crondog/swaybarexit
Stop swaybar crashing without args
2016-03-31 11:56:59 +02:00
crondog 9c42557b66 Stop swaybar crashing without args 2016-03-31 20:56:14 +11:00
Drew DeVault 0169ba02fa Update default wallpapers
New version from artist has a different background that will solve the
banding issue some users have raised.
2016-03-30 19:12:52 -04:00
Drew DeVault 96ef3f69c4 Merge pull request #557 from mikkeloscar/bar-font-pango-optional
Make pango: optional for bar font
2016-03-30 11:19:12 -04:00
Mikkel Oscar Lyderik 63474aa04d Make pango: optional for bar font 2016-03-30 16:38:04 +02:00
Drew DeVault 655b003062 Fix pointer scroll thing 2016-03-30 09:24:51 -04:00
Drew DeVault ebead7a9bf Fix crashes with borders 2016-03-30 09:21:30 -04:00
Drew DeVault a4bf09f142 Remove leftover comment 2016-03-30 08:36:25 -04:00
Drew DeVault a12850444d New feature: adjust gaps with floating_mod+scroll
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.
2016-03-30 08:34:32 -04:00
Drew DeVault 68f4f9b520 Update README screenshot 2016-03-30 07:46:54 -04:00
Drew DeVault 4bf10d7771 Merge pull request #551 from mikkeloscar/window-borders
Implement Window borders
2016-03-30 07:41:13 -04:00
Drew DeVault 3ffff5e4f2 Merge pull request #555 from mikkeloscar/mode-name-spaces
Allow surrounding spaces in mode name
2016-03-30 07:37:55 -04:00
Mikkel Oscar Lyderik 948c594132 Allow surrounding spaces in mode name
This makes it possible to define a mode name with surrounding spaces if
so desired. e.g.:

    mode "   hello   " {  }
2016-03-30 12:58:50 +02:00
Mikkel Oscar Lyderik 0af55539a8 Fix borders with floating windows 2016-03-30 10:09:08 +02:00
Mikkel Oscar Lyderik 6fa6c27f3d Update window title when it changes 2016-03-30 01:01:05 +02:00
Mikkel Oscar Lyderik 7878de5ccc Mark focused view focus_inactive on unfocused output 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik d80466068a Handle swaybar using sway font 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik a87a5dbdd5 Comment endianness 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik 5a13cb0ed1 Implement borders
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).
2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik 3b05f92f76 Add border <none|normal|toggle|pixel> config 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik 86ea79ea6d Implement parsing of hide_edge_borders 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik cefcce48aa Make client/pango.h not depend on client/window.h 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik da567317ab Make pango: prefix optional for font config 2016-03-30 00:47:58 +02:00
Mikkel Oscar Lyderik e2774aee3c Add default border colors 2016-03-30 00:47:58 +02:00