aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
AgeCommit message (Collapse)Author
2018-07-12Don't disable borders for xwayland floating viewsemersion
2018-07-11Updates for swaywm/wlroots#1116emersion
2018-07-11Implement floating_minimum_size and floating_maximum_sizeRyan Dwyer
2018-07-09Update for swaywm/wlroots#1126emersion
2018-07-09Merge pull request #2223 from RyanDwyer/floating-moveemersion
Implement some floating move commands
2018-07-09Remove duplicate function declaration and add assertionRyan Dwyer
2018-07-09Implement some floating move commandsRyan Dwyer
This implements the following for floating containers: * move <direction> <amount> * move [absolute] position <x> <y> * move [absolute] position mouse
2018-07-09No need to walk to workspace, recursive willvilhalmer
2018-07-09Regroup signalvilhalmer
2018-07-08Replace empty workspace with moved workspacevilhalmer
2018-07-07Fix titles when container titles contain UTF-8 charactersRyan Dwyer
The title and marks textures would have their height set from the config's computed max font height, but the textures were not regenerated when the config's max font height changed which made a gap appear. Rather than making it regenerate the title textures every time the config font height was changed, I've changed it to just make the textures the height of the title itself and fill any gap when rendering. Also, the title_width and marks_width variables have been renamed to make it more obvious that they are in output-buffer-local coordinates. Fixes #1936.
2018-07-06Make view_update_* update live props as wellemersion
2018-07-05workspace_next_name: free targets later than these already found in orderDominique Martinet
2018-07-05view_map: free criterias as the list it isDominique Martinet
2018-07-05container_free: free formatted titleDominique Martinet
2018-07-05Call view_set_tiled for mapping non-floating viewsRyan Dwyer
Fixes #2209.
2018-07-04Fix booleanRyan Dwyer
2018-07-04Only call view_set_tiled when switching floating modeRyan Dwyer
Otherwise it repeatedly sets the view's border to the config's default.
2018-07-02workspace_next_name: fix string length for ws_num >= 100Dominique Martinet
The check didn't include && ws_num < 100 so l would always be 1 or 2 Instead of fixing logic it's simpler to just call snprintf twice to get length and use that. Also change malloc failure check to sway_assert because both callers of this function do not do null check and would segfault... Found through static analysis.
2018-07-02find prev/next output/workspace: add NULL checkDominique Martinet
These could be called with NULL if there is no focus Found through static analysis.
2018-06-30sway views: add helpers to get view and layer from wlr_surfaceDominique Martinet
2018-06-30Merge remote-tracking branch 'upstream/master' into atomicRyan Dwyer
2018-06-30container_at_view: don't offset the view by the window geometryRostislav Pehlivanov
Fixes floating window input offsets. As discussed on IRC with emersion, this shouldn't have been done in the first place.
2018-06-30Revert "Don't unmaximize floating views"Rostislav Pehlivanov
This reverts commit 97672295ed50d1d6272876c4a3b6b5607cab05c6.
2018-06-30Fix floating views not receiving frame eventsemersion
That happened when they were in tabbed or stacked containers. Fixes #2161
2018-06-27Move unsetting of view->surface into view_unmapRyan Dwyer
2018-06-27Fix memleak in container_get_boxRyan Dwyer
Rather than allocate a structure and expect callers to free it, take a pointer to an existing struct as an argument. This function is no longer called anywhere though.
2018-06-27Remove transaction_add_damageRyan Dwyer
Instead, damage each container when applying the transaction.
2018-06-27Fix nitpicksRyan Dwyer
2018-06-26Remove incorrect assertion and supporting codeRyan Dwyer
Children can exist when destroying a container, such as when destroying the last output. Sway is not terminating in that case.
2018-06-26Fix crash when closing output window from outer sessionRyan Dwyer
Emitting the close event needs to happen before container_output_destroy, because container_output_destroy sets the sway_output to NULL and sway_output is used in IPC.
2018-06-26Fix crash when disconnecting outputRyan Dwyer
We were freeing the sway_output immediately upon disconnect which left a dangling pointer in the output's container. It then tried to use the pointer when the container is freed. We don't need to store the sway_output in an output's container which is destroying, so the fix is to set the pointer to NULL and remove the use in container_free. Also added an arrange when the output is disconnected for good measure.
2018-06-26Rename view's free callback to destroyRyan Dwyer
2018-06-26Damage output when a fullscreen view unmapsRyan Dwyer
Also moved the arranging into view_unmap to avoid excessive code duplication.
2018-06-25Fix potential crash when fullscreen view unmapsRyan Dwyer
It happened when a view is a grandchild or deeper of the workspace, is fullscreen, and unmaps. The workspace would not be included in the transaction and its pointer to the fullscreen view was left dangling.
2018-06-24Fix another crash when moving out of stacks or tabsRyan Dwyer
2018-06-24Fix crash when unmapping a view with reapable parentsRyan Dwyer
container_destroy was calling container_reap_empty, which calls container_destroy and so on. Eventually the original container_destroy would return a NULL pointer to the caller which caused a crash. This also fixes an arrange on the wrong container when moving views in and out of stacks.
2018-06-23Implement atomic layout updates for tree operationsRyan Dwyer
This implements atomic layout updates for when views map, reparent or unmap.
2018-06-18Preserve buffers during transactionsRyan Dwyer
* Also fix parts of the rendering where it was rendering the pending state instead of current.
2018-06-11Merge remote-tracking branch 'upstream/master' into atomicRyan Dwyer
2018-06-09Merge pull request #2124 from emersion/drag-iconsDrew DeVault
Render drag icons
2018-06-09Implement gaps (PR #2047)Nate Symer
2018-06-09Render drag iconsemersion
2018-06-09Refactor everything that needs to arrange windowsRyan Dwyer
* The arrange_foo functions are now replaced with arrange_and_commit, or with manually created transactions and arrange_windows x2. * The arrange functions are now only called from the highest level functions rather than from both high level and low level functions. * Due to the previous point, view_set_fullscreen_raw and view_set_fullscreen are both merged into one function again. * Floating and fullscreen are now working with transactions.
2018-06-09Make main properties be the pending stateRyan Dwyer
2018-06-09WIP: Atomic layout updates ground workRyan Dwyer
2018-06-08Switch restore workspaces to a nested for-loopBrian Ashworth
2018-06-08Restore workspaces to outputs based on priorityBrian Ashworth
2018-06-07Merge pull request #2084 from RedSoxFan/runtime-var-expansionemersion
Runtime variable expansion
2018-06-06Switch output storing from list_t to wl_listBrian Ashworth