683 Commits (daaec72ac01f66fda8b3eabe6e11e461f2e0f31d)

Author SHA1 Message Date
Ryan Dwyer bdae625cb3 Rebase the cursor after mapping a view
6 years ago
Drew DeVault bdb176863c
Merge pull request #2933 from Snaipe/xwayland-window-properties
6 years ago
emersion a654ac1bd6
Implement the presentation-time protocol
6 years ago
Franklin "Snaipe" Mathieu 8fc9328334 xwayland: populate window_properties in json for views
6 years ago
Ryan Dwyer 16ef702645 Fix xwayland wants_floating logic
6 years ago
Christian 989bddc765 Parse missing i3 window types
6 years ago
Ryan Dwyer 93ec1af4d9 Fix popup damage issues when toplevel and/or popup uses geometry
6 years ago
Ryan Dwyer c006717910 Minor refactor of input manager
6 years ago
Drew DeVault 765c80e5f7
Merge pull request #2820 from Emantor/fix-mouse-warping-container
6 years ago
Rouven Czerwinski 892446a0b6 view: move arrange_workspace into view_map
6 years ago
Ryan Dwyer c699a86e47 Fix pixel leaks when using fractional scaling
6 years ago
Drew DeVault 4bebee620f
Merge pull request #2772 from RyanDwyer/improve-popup-damage
6 years ago
Ryan Dwyer d21d2c8665 Remove duplicate code
6 years ago
Ryan Dwyer b8002fc0c4 Look for any ancestor when checking for fullscreen exit
6 years ago
Ryan Dwyer 88317b59ce Use current state when rendering transient containers
6 years ago
Ryan Dwyer f23588de3c Introduce container_is_transient_for
6 years ago
Ryan Dwyer 832ebc8966 Implement popup_during_fullscreen
6 years ago
Ryan Dwyer 59ba528bd9 Use wlr_xdg_popup_get_toplevel_coords
6 years ago
Ryan Dwyer 1059e173f4 Only damage popups when popups have damage
6 years ago
Ryan Dwyer 32cb631143 Give focus to another swaylock surface when output is disconnected
6 years ago
Drew DeVault 06c214a800
Merge pull request #2703 from RyanDwyer/csd-border
6 years ago
Ian Fan 0dfcadc1cf transaction: do not use pointers for state
6 years ago
Ryan Dwyer f16529e258 Remove server-decoration assumption if view supports xdg-decoration
6 years ago
Ryan Dwyer 6d0442c0c2 Rename view_set_csd_from_client to view_update_csd_from_client
6 years ago
Ryan Dwyer 7b138e5ef0 Add CSD to border modes
6 years ago
Ryan Dwyer cb66bbea42 Allow running commands on containers without focusing them
6 years ago
Ryan Dwyer ae2f53a477 Reconfigure xwayland views when repositioned
6 years ago
emersion 4289343e17 Fix segfault in output_render
6 years ago
Drew DeVault 456b91600d
Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigans
6 years ago
Marien Zwart ffd1308bbc Fix crash when destroying an idle-inhibiting client
6 years ago
Ryan Dwyer f6e218a643 Rename seat_get_active_child to seat_get_active_tiling_child
6 years ago
emersion 7699c5444c Update for swaywm/wlroots#1243
6 years ago
Ryan Dwyer eb74317c2d Fix dropzone box on scaled outputs
6 years ago
Ryan Dwyer 8bb40c24c7 Implement tiling drag
6 years ago
Ryan Dwyer d4e80cf301 Rename OP_MOVE to OP_MOVE_FLOATING
6 years ago
Armin Preiml 47b6fea3fe handle_layer_shell_surface: Do not crash if seat doesn't have focus
6 years ago
Ryan Dwyer 9215ca0f01 Align titles to baseline
6 years ago
Ryan Dwyer 9226aad58c Fix gaps in title textures and vertically center them
6 years ago
Drew DeVault 030b5bc024
Merge pull request #2603 from emersion/fix-dnd
6 years ago
emersion 251a7ebc4b Fix drag-and-drop
6 years ago
Ryan Dwyer cf32d5d776 Float views when min == max on either dimension
6 years ago
Ryan Dwyer 5967ee1fbc Fix crash when switching to new workspace during transaction
6 years ago
Ryan Dwyer 9642b87b9e Fix crash when views rapidly map and unmap
6 years ago
Ryan Dwyer 93ff7879f1 Fix output position issue
6 years ago
Ryan Dwyer 0b23423c14 Update output propertes on mode change
6 years ago
Ryan Dwyer 26204441b4 Apply default config to output
6 years ago
Ryan Dwyer acc2628c79 Don't use wlr_output properties
6 years ago
Ryan Dwyer 7586f150c0 Implement type safe arguments and demote sway_container
6 years ago
Ryan Dwyer 29f5cc7508 Implement window_role criteria token
6 years ago
Ian Fan e6fde0739a Fix crash when a splash screen opens on an empty workspace
6 years ago
Brian Ashworth afb6968874
Merge branch 'master' into disabled-no-modeset
6 years ago
Ryan Dwyer f057a0195e Implement focus_on_window_activation
6 years ago
Ryan Dwyer 69cd1dfaca Check modal state when determining whether an xwayland view should float
6 years ago
emersion 349d1f3be8 Do not modeset disabled outputs
6 years ago
Ryan Dwyer f4ec308376 Implement window_type criteria token
6 years ago
Ryan Dwyer dce549c537 Don't send never-ending transactions when a focused layer surface commits
6 years ago
Drew DeVault 3686724c9e
Merge pull request #2531 from RyanDwyer/maybe-fix-transaction-crash
6 years ago
Ryan Dwyer 3c4196b986 Fix rendering of nested tabs
6 years ago
Ryan Dwyer 53fe7b02e9 Fix workspace tabs
6 years ago
Ryan Dwyer b12f7be907 Don't use bitfield to test for similar transactions
6 years ago
Ryan Dwyer 126a82f14f Fix gaps issues
6 years ago
Ryan Dwyer f5b9815128 Prepare arrange code for type safe arguments
6 years ago
Drew DeVault 10c2c09cf6
Merge pull request #2513 from RyanDwyer/rename-root-outputs
6 years ago
Ryan Dwyer 5dbbab7bdc Remove layout.c
6 years ago
Ryan Dwyer 2e7401772e Rename sway_root.outputs to sway_root.all_outputs
6 years ago
Ryan Dwyer b6058703fa Refactor destroy functions and save workspaces when there's no outputs
6 years ago
Drew DeVault 08a69f267a
Merge pull request #2483 from RyanDwyer/floating-emit-reparent
6 years ago
Ryan Dwyer 0f6d212629 Send output enter/leave events correctly
6 years ago
Ryan Dwyer b3e2c49774 Fix crash when a view destroys with pending transactions
6 years ago
emersion 8db6c68db6
Merge pull request #2493 from RyanDwyer/fix-popup-position
6 years ago
Drew DeVault 9f913614ca
Merge pull request #2478 from RyanDwyer/standardise-debug
6 years ago
Ryan Dwyer 76bdb21ca9 Fix popup position when parent uses geometry
6 years ago
Ryan Dwyer 2b5a404ac9 Replace hacky L_FLOATING container with a list
6 years ago
Ryan Dwyer f9563d88f3 Use enum for damage debug options
6 years ago
Ryan Dwyer 8d1dd03823 Standardise debug variables
6 years ago
Drew DeVault d0a24465d7
Merge pull request #2466 from RyanDwyer/geometry
6 years ago
Ryan Dwyer d6cd79c342 Implement iterators per container type
6 years ago
Ryan Dwyer ce78f6770e Fix nitpick
6 years ago
Ryan Dwyer b0a5f3a25f Store geometry in the view and handle any floating view resizing
6 years ago
Ryan Dwyer 4e755c4b12 Set current size when a floating xwayland view resizes
6 years ago
Ryan Dwyer 8af4e2e3e6 Handle xwayland views sending new sizes in their commits
6 years ago
Ryan Dwyer 9ee89f11c4 Add get_geometry for xdg_shell_v6
6 years ago
Ryan Dwyer 8034c25426 Render saved buffer using saved geometry
6 years ago
Ryan Dwyer 982a2d0c99 Fix geometry
6 years ago
emersion b3ee9af0c8 Add view_get_geometry
6 years ago
Ryan Dwyer 1801b725e2 Add using_csd variable to transaction state
6 years ago
Ryan Dwyer c3ef36d6b5 Simplify transactions
6 years ago
Ryan Dwyer 4b8e3a885b Don't commit multiple transactions at the same time
6 years ago
Ryan Dwyer e7a7306063 Don't progress transaction queue if any are partially complete
6 years ago
Ryan Dwyer b4a0363d17 Implement resizing tiled containers via cursor
6 years ago
emersion d1433c637a xwayland: fix unmanaged surfaces order
6 years ago
emersion d2ac48f920 Handle views created after decoration mode is sent for xdg-shell-v6
6 years ago
emersion 9d578e0a0f Handle views created after decoration mode is sent for xdg-shell
6 years ago
Ryan Dwyer 787f08da7f Convert toplevel coordinates to output-local
6 years ago
Ryan Dwyer 8392eae40f Revert "Revert "Fix popups""
6 years ago
Drew DeVault ea14ef4095
Merge pull request #2366 from RedSoxFan/nagbar
6 years ago
Ryan Dwyer 706c0fbe23
Merge branch 'master' into nagbar
6 years ago
Drew DeVault 9aa258d33a Revert "Fix popups"
6 years ago
Ryan Dwyer 8314019f66 Fix race condition crashes when unmapping views
6 years ago
emersion 47bf4ed0cb
Merge branch 'master' into fix-resize-wiggle
6 years ago
Brian Ashworth a4f7bf23b2 Address first round review for swaynag
6 years ago
Brian Ashworth abf33468c1 Arrange output in arrange_layers and commit dirty
6 years ago
Ryan Dwyer d10ccc1eb1 Correctly track saved surfaces during multiple transactions
6 years ago
Ryan Dwyer 7a59508da4 Close popups when changing focus
6 years ago
Ryan Dwyer de86d65627 Fix popups
6 years ago
emersion 15c19572cf Fix segfault with fullscreen
6 years ago
Drew DeVault cbd0c3ec40
Merge pull request #2367 from emersion/iterator-redesign
6 years ago
Brian Ashworth b8efdeae29 Fix title textures on scale change
6 years ago
emersion 9a7e436fad Don't give focus if xwayland window has a type hint
6 years ago
emersion 0ad865f0b7 Make output_surface_for_each_surface_iterator static
6 years ago
emersion 9951b2ec33 Remove unused output_from_wlr_output
6 years ago
emersion fe0750fec1 Remove output_surface_for_each_surface from header
6 years ago
emersion 8d5cc8625c Completely switch over to new iterators
6 years ago
emersion e9d674cfd2 wip: redesign output_view_for_each_surface iterator
6 years ago
emersion a0dd977617 wip: redesign output_layer_for_each_surface iterator
6 years ago
emersion dbf6dd0dae wip: redesign output_drag_icons_for_each_surface iterator
6 years ago
emersion d2172bd331 wip: redesign output_unmanaged_for_each_surface iterator
6 years ago
Drew DeVault 53069f1403
Merge pull request #2360 from RyanDwyer/floating-containers
6 years ago
Ryan Dwyer 08cfba2192 Allow containers to float
6 years ago
Ryan Dwyer a4bcddcfdc Include errno.h
6 years ago
Ryan Dwyer d6daf10cad Show errno description in log
6 years ago
Ryan Dwyer 32663b7b01 Handle out-of-fd situations gracefully for transaction and urgent timers
6 years ago
Ryan Dwyer 52cf410d3c Second attempt at fixing transaction use-after-free
6 years ago
Ryan Dwyer 073ac425d5 Fix use after free in transactions
6 years ago
Ryan Dwyer 868dcde14e Fix indent
6 years ago
Ryan Dwyer 27a20a4884 Allow containers to be fullscreen
6 years ago
Drew DeVault 53dbe2da4b
Merge pull request #2353 from emersion/render-opaque-overlay
6 years ago
Pascal Pascher f95cb9a7c1 reverted includes of "sway/config.h" and replaced with "config.h" from meson build
6 years ago
emersion 0e79b2114c Improve rendering with a fullscreen opaque overlay surface
6 years ago
Pascal Pascher 2bf893248a style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false
6 years ago
Pascal Pascher 24ad1c3983 Added meson option "enable_xwayland" (default: true) to enable/disable xwayland support
6 years ago
Drew DeVault f4b882475e Merge branch 'master' into pid-workspaces
6 years ago
somdoron 7ead2e85a7 fix crash on new output while swaylock is running
6 years ago
emersion 238c8afc74 Handle set_{title,app_id} for xdg-shell and zxdg-shell-v6
6 years ago
Ryan Dwyer 5ba2ae9c6a Implement request_move and request_resize for xwayland views
6 years ago
Ryan Dwyer cf5f5eaf8c Deny move/resize events for tiled xdg shell views
6 years ago
Ryan Dwyer 011d1ebfa4 Consider view's min/max sizes when resizing
6 years ago
Ryan Dwyer 9df660ee31 Store last button and use it when views request to move or resize
6 years ago
Ryan Dwyer ff445cc855 Implement xdg shell request_move and request_resize events
6 years ago
Ryan Dwyer 31f91bd483 Improve resize performance by partially flushing the transaction queue
6 years ago
Ryan Dwyer f9491c9584 Fix damage issue when moving and resizing
6 years ago
Ryan Dwyer c2ed3d8bd6 Implement force_display_urgency_hint
6 years ago
emersion 4154234eee Update for swaywm/wlroots#1148
6 years ago
Ryan Dwyer 63d6233fcb Allow xwayland views to become urgent when on a non-visible workspace
6 years ago
emersion 747725b8bb Don't unfocus when an override redirect window is mapped
6 years ago
emersion fb4eca5d56 Handle xwayland override_redirect flag change
6 years ago
frsfnrrg 3931cb85b2 Fix memory leak in sway/desktop/idle_inhibit_v1.c
6 years ago
frsfnrrg 37471ac649 Fix memory leak in handle_layer_shell_surface
6 years ago
Ryan Dwyer 75c699db62 Implement default_floating_border command and adjust CSD behaviour
6 years ago
Ryan Dwyer af5f736277 Render containers as urgent if they have an urgent child
6 years ago
Ryan Dwyer e3f90f00fe Implement xwayland urgency hint
6 years ago
Ryan Dwyer 315d5311b2 Implement urgency base functionality
6 years ago
Ryan Dwyer a120d4c79f Make focus part of transactions
6 years ago
Drew DeVault 53e3f35ba3
Merge pull request #2272 from RyanDwyer/simplify-transactions
6 years ago
Drew DeVault b1afcc69fa Add extended debugging flags
6 years ago
Ryan Dwyer 6b2dc7e63b Set signature to void
6 years ago
Ryan Dwyer 2032f85d94 Simplify transactions by utilising a dirty flag on containers
6 years ago
emersion efda33b285 Simplify popup_unconstrain
6 years ago
emersion d88f1d2196 Fix output_has_opaque_lockscreen
6 years ago
Ryan Dwyer 53133fdefb
Merge branch 'master' into xwayland-floating-borders
6 years ago
emersion a96f1c22fe Add xdg-positioner support
6 years ago
emersion 9b16227ec3 Don't disable borders for xwayland floating views
6 years ago
Ryan Dwyer 3b50a2a3af Use saved buffer when fullscreen view is in a transaction
6 years ago
russ morris 6ae1004cd1 removed unnecessary parens
6 years ago
russ morris c06266e12d fix line lengths
6 years ago
russ morris b9d8ecc548 tabs instead of spaces
6 years ago
russ morris 89c25dd149 fix tabbed titlebar widths
6 years ago
Ryan Dwyer 56ad148403
Merge branch 'master' into fix-stacked-layout
6 years ago
emersion 63b4bf5000
Update for swaywm/wlroots#1126
6 years ago
Konstantin Pospelov 9dd54f934e Fix titlebar rendering for nested stacked containers
6 years ago
Ryan Dwyer ab8a86369c Implement some floating move commands
6 years ago
emersion f9625d1d56
Split renderer
6 years ago
Ryan Dwyer 0046eed969 Fix titles when container titles contain UTF-8 characters
6 years ago
emersion 9a9d9116be
Make view_update_* update live props as well
6 years ago
emersion 47d56306c3
Fix xwayland floating views unclickable
6 years ago
Ryan Dwyer 464d4d5889 Translate surface by its geo when doing opaque box check
6 years ago
Ryan Dwyer 9480781229 Don't clear when using opaque lockscreen
6 years ago
Ryan Dwyer 3b842f4eed Detect opaque lockscreen when using a solid color
6 years ago
Ryan Dwyer f1fadef923 Use pixman_region32_contains_rectangle
6 years ago
Ryan Dwyer 839c3a5500 Use opaque region to determine if frame done should be sent
6 years ago
Ryan Dwyer 58befcf2cd Don't send frame done to surfaces behind lockscreen
6 years ago
emersion 51b215ad5c
Use wlr_surface.buffer_damage
6 years ago
Drew DeVault d43500831a
Updates per wlroots#1076
6 years ago
Ryan Dwyer 50b401677b Fix use after free in transaction code
6 years ago
Ryan Dwyer d467452e5e Fix damage on swaybar when view requests to exit fullscreen
6 years ago
emersion f611a4f9b1
Merge pull request #2187 from martinetd/idle-inhibit
6 years ago
Dominique Martinet 71224781c4 idle_inhibit: move server data to its own struct
6 years ago
Dominique Martinet 072b334abc idle_inhibit: stop inhibitor when views become invisible
6 years ago
Dominique Martinet e4bfb3bc98 Add idle inhibit unstable v1 support
6 years ago
Dominique Martinet df494a7e51 transaction_apply: use float for quotient
6 years ago
Drew DeVault acd79e1505 Implement pid->workspace tracking
6 years ago
Dominique Martinet bc1e99305a xdg_shell: listen to fullscreen request on map
6 years ago
Dominique Martinet 9ea4cc13a0 sway views: add helpers to get view and layer from wlr_surface
6 years ago
Ryan Dwyer e396af853b Merge remote-tracking branch 'upstream/master' into atomic
6 years ago
Rostislav Pehlivanov 0cc24dd9c8 Fix crash with stacking layout after f42bf0ad4
6 years ago
Rostislav Pehlivanov e0d0e8f840 Revert "Don't unmaximize floating views"
6 years ago
Ryan Dwyer 96c8c02483 Fix flash of background when xwayland views are mapped
6 years ago
Ryan Dwyer 3a6ed5110c Render saved buffers with the surface's dimensions
6 years ago
Ryan Dwyer a2fbb20a61 Merge remote-tracking branch 'upstream/master' into atomic
6 years ago
Ryan Dwyer d7169ee7ff Replace list_empty with a simple alternative
6 years ago
Armin Preiml c4b900c1e0 fix accidently removing borders on XCB_CONFIGURE_REQUEST
7 years ago
Ryan Dwyer 9652529cc1 Allow views to skip configures
7 years ago
Ryan Dwyer e6829c5991 Move unsetting of view->surface into view_unmap
7 years ago
Ryan Dwyer be86d3aba6 Remove transaction_add_damage
7 years ago
Ryan Dwyer 61c1187685 Fix nitpicks
7 years ago
Ryan Dwyer bf38081382
Merge branch 'master' into xwayland-wants-float
7 years ago
emersion ecd748d240
Merge branch 'master' into float_xdg_shell
7 years ago
Dominique Martinet 6856866a61 layer_shell: order destroying before sway_output
7 years ago
Dominique Martinet 08800c8ee2 layer_shell: cleanup output link on output destroy
7 years ago
Ryan Dwyer 834805f5e2 Fix crash when disconnecting output
7 years ago
Ryan Dwyer 0085f64ac0 Remove timer when transaction destroys
7 years ago
Ryan Dwyer e8001e6fbe Damage output when views toggle fullscreen
7 years ago
Ryan Dwyer 50190bc760 Rename view's free callback to destroy
7 years ago
Ryan Dwyer 7a922c65aa Damage output when a fullscreen view unmaps
7 years ago
Dominique Martinet c9be014557 xdg_shell: make view floating if a parent has been set
7 years ago
Ryan Dwyer beacd4d9f9 Rename progress_queue to transaction_progress_queue
7 years ago
Ryan Dwyer c371ff3de8 Implement per-configure debug timings
7 years ago
Ryan Dwyer 289d696adc Implement transaction timings debug
7 years ago
emersion eeb38d65cb
xwayland: accept configure requests from floating views
7 years ago
Ryan Dwyer 1549fb719a Implement atomic layout updates for xwayland views
7 years ago
Ryan Dwyer 33e03cb277 Fix crash related to stacks and tabs
7 years ago
Ryan Dwyer f08a30d6d0 Force transactions to complete in order
7 years ago
Ryan Dwyer 32b865e610 Fix crash when deleting last child in a tabbed or stacked container
7 years ago
Ryan Dwyer 38398e2d77 Implement atomic layout updates for tree operations
7 years ago
emersion cda66e9a26
Automatically float xwayland windows
7 years ago
Ryan Dwyer 1c89f32533 Preserve buffers during transactions
7 years ago
Ryan Dwyer 645bf446fa Merge remote-tracking branch 'upstream/master' into atomic
7 years ago
emersion 088cae45c8 Update for swaywm/wlroots#1060
7 years ago
Ryan Dwyer 9e96cfd310 Merge remote-tracking branch 'upstream/master' into atomic
7 years ago
emersion cfd02918c0
Render drag icons
7 years ago
emersion 88cd7616db
Fix compilation errors related to disabled outputs
7 years ago
Ryan Dwyer bb66e6d578 Refactor everything that needs to arrange windows
7 years ago
Ryan Dwyer f9e6d703d2 Make main properties be the pending state
7 years ago
Ryan Dwyer 59c9488701 WIP: Atomic layout updates ground work
7 years ago
Brian Ashworth e072fbc6d9 Switch output storing from list_t to wl_list
7 years ago
Brian Ashworth a0bbe67076 Address emersions comments on output re-enabling
7 years ago
Brian Ashworth a1b5b93d29 Store sway_outputs so that they can be reenabled
7 years ago
emersion 0f71547032
Merge pull request #2095 from emersion/fullscreen-damage-only-visible
7 years ago
Ryan Dwyer 1206a60977 Don't restore focus if unmapping surface wasn't focused
7 years ago
Ryan Dwyer 9253278328 Restore focus when unmapping layer shell surfaces
7 years ago
Ryan Dwyer 74799937cf Restore focus when unmapping unmanaged xwayland surfaces
7 years ago
emersion 55b855d867
Add SWAY_DAMAGE_DEBUG
7 years ago
emersion 34bdf25bb5
Only send frame to visible surfaces when fullscreened
7 years ago
emersion 51eee3aecc
Schedule a frame even if damage is empty
7 years ago
emersion 65845be802
Only send frame done to visible views
7 years ago
Ryan Dwyer d466b8fa7b Don't auto float xdg views if their dimensions are not set
7 years ago
Ryan Dwyer c9e3a313b4 Fix fullscreen position of xwayland views
7 years ago
Ryan Dwyer 9119f87655 Fix floating position when view is floated when mapped
7 years ago
Ryan Dwyer 97672295ed Don't unmaximize floating views
7 years ago
Ryan Dwyer becceafa7f Remove unfinished wants_floating implementation for xwayland
7 years ago