summaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell_v6.c
AgeCommit message (Collapse)Author
2018-06-26Damage output when views toggle fullscreenRyan Dwyer
Also add workspace to the transaction when a view maps in fullscreen mode.
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-26xdg_shell: make view floating if a parent has been setDominique Martinet
Prompts e.g. authentication request from firefox-wayland ought to be floating. This is a bit coarse but just fixed size is not enough, here is what firefox does: [1285461.363] -> [email protected]_xdg_surface(new id xdg_surface@68, wl_surface@71) [1285461.508] -> [email protected]_toplevel(new id xdg_toplevel@67) [1285461.571] -> [email protected]_parent(xdg_toplevel@37) [1285461.630] -> [email protected]_title("Authentication Required") [1285461.736] -> [email protected]_app_id("firefox") ... [1285476.549] [email protected](0, 0, array) ... [1285502.080] -> [email protected]_min_size(299, 187) [1285502.140] -> [email protected]_max_size(1920, 32767) This can also be observed with e.g. the open window of gedit (gedit->open->other documents)
2018-06-23Implement atomic layout updates for tree operationsRyan Dwyer
This implements atomic layout updates for when views map, reparent or unmap.
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-09WIP: Atomic layout updates ground workRyan Dwyer
2018-06-01Don't auto float xdg views if their dimensions are not setRyan Dwyer
2018-06-01Fix floating position when view is floated when mappedRyan Dwyer
2018-06-01Don't unmaximize floating viewsRyan Dwyer
2018-06-01Use surface size if xdg shell's geometry isn't setRyan Dwyer
2018-06-01Implement wants_floating for xdg_shell and xdg_shell_v6Ryan Dwyer
2018-06-01Store swayc coordinates as layout-localRyan Dwyer
2018-06-01Rename set_maximized functions to set_tiledRyan Dwyer
2018-06-01Replace is_floating boolean with functionRyan Dwyer
2018-06-01Implement floatingRyan Dwyer
2018-05-14Revert "Revert "Merge pull request #1943 from RyanDwyer/criteria-improvements""Ryan Dwyer
This reverts commit 32a572cecfd0f6072a78ce0a381a2f8365f9010a. This reimplements the criteria overhaul in preparation for fixing a known bug.
2018-05-12Don't destroy view child on xdg-popup unmapemersion
2018-05-12Revert "Merge pull request #1943 from RyanDwyer/criteria-improvements"Drew DeVault
This reverts commit 3e1bf721c69cb6df70c3dc3d3d4933e987339676, reversing changes made to 2217518bd554d0f11dafa7ec4e8f35f2e4762fbd.
2018-05-11Overhaul criteria implementationRyan Dwyer
The criteria struct now uses properties for each token type rather than the list_t list of tokens. The reason for this is that different token types have different data types: pcre, string and number to name a few. This solution should be more flexible moving forward. A bonus of this is that criteria is now easier to understand when looking at the struct definition. The criteria parser has been rewritten because the previous one didn't support valueless pairs (eg. [class="foo" floating]). Criteria now has types. Types at the moment are CT_COMMAND, CT_ASSIGN_WORKSPACE and CT_ASSIGN_OUTPUT. i3 uses types as well. Previously the assign command was creating a criteria with 'move to workspace <name>' as its command, but this caused the window to appear briefly on the focused workspace before being moved to the assigned workspace. It now creates the view directly in the assigned workspace. Each view will only execute a given criteria once. This is achieved by storing a list of executed criteria in the view. This is the same strategy used by i3. Escaping now works properly. Previously you could do things like [class="Fire\"fox"] and the stored value would be 'Fire\"fox', but it should be (and now is) 'Fire"fox'. The public functions in criteria.c are now all prefixed with criteria_. Xwayland views now listen to the set_title, set_class and set_window_type events and criteria will be run when these happen. XDG shell has none of these events so it continues to update the title in handle_commit. Each view type's get_prop function has been split into get_string_prop and get_int_prop because some properties like the X11 window ID and window type are numeric. The following new criteria tokens are now supported: * id (X11 window ID) * instance * tiling * workspace
2018-05-10Damage borders when damaging viewemersion
2018-05-05Implement title_formatRyan Dwyer
This implements the title_format command, with a new placeholder %shell which gets substituted with the view type (xwayland, xdg_shell_v6 or wl_shell). Example config: for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
2018-05-03Update titles when surfaces are committedRyan Dwyer
2018-04-30Implement bordersRyan Dwyer
Implements rendering of borders. Title text is still to do. Implements the following configuration directives: * client.focused * client.focused_inactive * client.unfocused * client.urgent * border * default_border
2018-04-28Don't call view_set_fullscreen on unmapped xwayland viewsemersion
2018-04-20Ignore xdg_shell_v6 request_fullscreen if not mappedRyan Dwyer
2018-04-19xdg_shell_v6: Use client_pending state instead of currentRyan Dwyer
It appears client_pending is the state that should be used here.
2018-04-18Fullscreen fixes.Ryan Dwyer
2018-04-17Handle fullscreen flag when mapping a surface.Ryan Dwyer
2018-04-16Implement fullscreen.Ryan Dwyer
2018-04-06Don't damage the whole outputemersion
2018-04-06Simplify damage tracking functions, use them in layer shellemersion
2018-04-06Send surface enter/leave events to view childrenemersion
2018-04-05Fix xwayland unmanaged surfacesemersion
2018-04-05Track damage of xdg-shell-v6 popupsemersion
2018-04-05Implement shell viewsemersion
2018-04-04Remove unused SWAY_VIEW_TYPESemersion
2018-04-02Address review commentsemersion
2018-03-31Add sway_view_implemersion
2018-03-31Introduce common functions to create, map, unmap, destroy viewsemersion
2018-03-30Handle map/unmap events in xdg-shell-v6emersion
2018-03-30Add lite damage trackingemersion
This skips the renderer if nothing has changed, and renders everything otherwise.
2018-03-30Fix workspace deletion edge casesDrew DeVault
2018-03-29Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"Tony Crisci
This reverts commit 472e81f35d689d67cda241acafda91c688d61046, reversing changes made to 6b7841b11ff4cd35f54d69dc92029855893e5ce0.
2018-03-29Revert "Refactor tree"Drew DeVault
2018-03-29Merge pull request #1647 from acrisci/refactor-treeDrew DeVault
Refactor tree
2018-03-29arrange windowsTony Crisci
2018-03-29more renaming thingsTony Crisci
2018-03-29rename container functionsTony Crisci
2018-03-29Maximize xdg shell surfaces on creationDrew DeVault
Makes them look better yo In the future we might want to only do this for tiled windows, and let floating windows do their own thing.