aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-14Set panels' geometries correctly and don't render them explicitlyDavid Eklov
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-14Don't treat backgrounds as shell surfacesDavid Eklov
This code had some issues. Remove it now so that we can start clean and fix it later.
2016-07-14Revert "swaybg: Make swaybg a shell surface"David Eklov
This reverts commit 99bda4afe27d9e5723ab6b0ebe5eabb0caaa8eeb. 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-14Merge pull request #726 from Hummer12007/hwcDrew DeVault
Spawn new views to target ws's focused container
2016-07-15Suspend destruction of wss when creating viewsMykyta Holubakha
2016-07-15Spawn new views to target ws's focused containerMykyta Holubakha
2016-07-14Merge pull request #750 from deklov/sway-lock-01Drew DeVault
swaylock: Add -f option to detach from the controlling terminal, fixe…
2016-07-13swaylock: Add -f option to detach from the controlling terminal, fixes #725David Eklov
2016-07-12Merge pull request #749 from Hummer12007/patch-2Drew DeVault
Enable using non-annotated tags in git-describe
2016-07-12Enable using non-annotated tags in git-describeHummer12007
This fixes the version string
2016-07-12Merge pull request #747 from deklov/clang-format-01Drew DeVault
clang-format configuration for Sway's style as detailed in CONTRIBUTI…
2016-07-12Merge pull request #748 from Hummer12007/x86fixDrew DeVault
Fix build on x86
2016-07-12Fix build on x86Mykyta Holubakha
2016-07-11clang-format configuration for Sway's style as detailed in CONTRIBUTING.mdDavid Eklov
CONTRIBUTING.md says use kernel style, "but all braces go on the same line". The kernel uses a column limit of 80 characters. The de facto syle in Sway is to allow for wider lines so this format file does not enforce an 80 column limit.
2016-07-07Merge pull request #744 from thejan2009/tabbed-stacked-layout-fixesDrew DeVault
Fix tabbed/stacked corner case #742
2016-07-07Fix tabbed/stacked corner case #742D.B
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.
2016-07-06Merge pull request #739 from deklov/swaybar-pointer-01Drew DeVault
Enable windows to register to get notified of pointer button events
2016-07-06Fix formatting guide violations (spaces instead of tabs)David Eklov
2016-07-06Enable windows to register to get notified of pointer button eventsDavid Eklov
2016-07-06Check capabilities before using pointer and keyboardDavid Eklov
2016-07-05Merge pull request #740 from zandrmartin/json-fixesDrew DeVault
get_tree json fixes
2016-07-05get_tree json fixesZandr Martin
- null pointer check against container names - use actual json null values instead of "null" strings - add "visible" property to all containers
2016-07-05Merge pull request #738 from deklov/panel-as-shell-02Drew DeVault
Make swaybar and swaybg shell surfaces, take 2
2016-07-04Fix formatting guide violations (spaces instead of tabs)David Eklov
2016-07-04swaybg: Make swaybg a shell surfaceDavid Eklov
2016-07-04swaybar: Make swaybar a shell surfaceDavid Eklov
2016-07-04Move code to make a window a shell surface into seperate functionDavid Eklov
2016-07-04Enable backgrounds and panels to be shell surfacesDavid Eklov
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.
2016-07-04Merge pull request #737 from zandrmartin/fix-bar-on-reloadDrew DeVault
I think this fixes #678
2016-07-04I think this fixes #678Zandr Martin
2016-07-04Merge pull request #735 from zandrmartin/get-tree-commandDrew DeVault
implement `get_tree` command
2016-07-04Merge branch 'master' into get-tree-commandZandr Martin
2016-07-04fix typo in ipc-json.cZandr Martin
2016-07-04implement `get_tree` commandZandr Martin
2016-07-04Merge pull request #734 from jplatte/patch-1Drew DeVault
Create .editorconfig
2016-07-04Create .editorconfigJonas Platte
2016-07-03Merge pull request #732 from zandrmartin/set-size-commandDrew DeVault
Set size command
2016-07-03typo in focus.hZandr Martin
2016-07-03resize command updates (#713)Zandr Martin
2016-07-03match i3 syntax for `resize set`Zandr Martin
2016-07-02Merge remote-tracking branch 'upstream/master' into set-size-commandZandr Martin
2016-06-30Spawn windows as floating if they have a parentDrew DeVault
Fixes #604
2016-06-27Merge pull request #728 from deklov/masterDrew DeVault
Add get_log_level() to encapsulate v (current log level)
2016-06-27Add get_log_level() to encapsulate v (current log level)David Eklov
This patch also makes all global variable in log.c static.
2016-06-27Merge pull request #723 from deklov/masterDrew DeVault
Bug fix: Add missing header file, unistd.h
2016-06-26Bug fix: Add missing header file, unistd.hDavid Eklov
Without unistd.h the following functions getuid, alarm and close are implicitly declared causing compilation to fail due to -Werror=implicit-function-declaration
2016-06-25Merge branch 'set-size-command' of github.com:zandrmartin/sway into ↵Zandr Martin
set-size-command
2016-06-21Merge pull request #720 from Hummer12007/exec_fixDrew DeVault
Check if found ws is focused in new view handler
2016-06-21Check if found ws is focused in new view handlerMykyta Holubakha
Fixes #714, by preventing change of focus from a window to the whole ws
2016-06-19Minor fix to warning messagesDrew DeVault