aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2022-11-16launcher: export X startup ids and use them for workspace matchingFurkan Sahin-0/+1
2022-11-18launcher: export xdga tokens and use them for workspace matchingFurkan Sahin-0/+4
2022-11-16launcher: fudge the interface a bitFurkan Sahin-1/+1
We want to create a context before knowing the pid it will match with.
2022-11-16launcher: initialize launcher_ctxs once on startupFurkan Sahin-1/+3
2022-11-16view: associate launch contexts with viewsFurkan Sahin-3/+22
Views now maintain a reference to a launch context which, as a last resort, is populated at map time with a context associated with its pid. This opens the possibility of populating it before map via another source, e.g. xdga-tokens or configuration.
2022-11-16launcher: rename pid_workspace to launcher_ctxFurkan Sahin-3/+3
Soon we will match views with more than just a pid.
2022-11-16launcher: track workspaces by nodeFurkan Sahin-2/+0
This removes the need to rename the pid_workspaces when a workspace is renamed. It also opens the possibility of tracking other node types. Tracking containers would allow application to be placed correctly in the container tree even if the user has moved their focus elsewhere since it was launched.
2022-11-16root: move the workspace matching code to its own fileFurkan Sahin-8/+14
This removes the pid_workspace bits from tree/root before it gets too interesting. No functional change.
2022-11-03Update for wlroots!3814Furkan Sahin-0/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3814
2022-10-04ipc: add view content typeFurkan Sahin-0/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3599
2021-01-28Listen to the output request_state eventFurkan Sahin-0/+1
References: https://github.com/swaywm/wlroots/pull/2693
2022-11-15input/seat: locally compute drag icon offsetFurkan Sahin-0/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3861
2022-11-11Use wlr_damage_ringFurkan Sahin-3/+5
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
2022-08-24Support libinput's 1.21 new dwtp optionFurkan Sahin-0/+2
Support the new dwtp (disable while trackpointing) option introduced in libinput 1.21, allowing users to control whether the trackpoint (like those in Thinkpads, but not only) should be disabled while using the keyboard/touchpad. See: https://gitlab.freedesktop.org/libinput/libinput/-/issues/731
2022-04-29Rework session lock keyboard focus handlingFurkan Sahin-4/+1
When removing outputs, it is possible to end up in a situation where none of the session lock client's surfaces have keyboard focus, resulting in it not receiving keyboard events. Track the focused surface and update it as needed on surface destroy.
2022-10-23Fix keymap being NULL and segfaulting on dev addFurkan Sahin-1/+1
Moved `libinput_config` to the callers of `sway_input_configure_libinput_device` so that we send the event after the added event.
2022-10-04Add support for ext-idle-notify-v1Furkan Sahin-0/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3753
2022-10-08Use keyboard_state.focused_surface directlyFurkan Sahin-2/+0
2022-09-19allow pointer_constraints on layer_shell surfacesFurkan Sahin-0/+2
2022-09-29sway/commands/output: Add command for unplugging non-physical outputsFurkan Sahin-0/+1
2022-06-09sway: add non-desktop outputs to json when running `swaymsg -t get_outputs`Furkan Sahin-0/+2
2022-06-09sway: Add non-desktop-output typeFurkan Sahin-0/+9
Currently, when encountering a non-desktop display, sway offers the output for leasing and returns without storing it in a sway specific output type like `struct sway_output`. Additionally, running `swaymsg -t get_outputs` doesn't show non-desktop outputs. This commit stores the non-desktop outputs into a struct called `sway_output_non_desktop`, and adds them to a list on `sway_root`
2022-06-23Remove internal references to DPMSFurkan Sahin-8/+2
While at it, use an int for the config field, just like we do for all other fields.
2022-07-01Reuse parsed PangoFontDescriptionFurkan Sahin-7/+9
Avoids parsing the configured font each time text is rendered.
2022-06-29Reject font values that are invalid for pangoFurkan Sahin-2/+4
Use pango to parse font configuration early, and reject the command as invalid if the value is invalid for pango. Since we're already parsing the font into a `PangoFontDescription`, keep that instance around and avoid re-parsing the font each time we render text. Fixes: https://github.com/swaywm/sway/issues/6805
2022-06-22Rename dpms output command to powerFurkan Sahin-0/+1
The "dpms" command refers to VESA Display Power Management Signaling, a deprecated standard. It's superseded by VESA DPM. Instead of tying out command name to a particular standard, use the neutral term "power".
2022-06-21Remove access to wlr_input_device unionFurkan Sahin-0/+3
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3626 Closes: https://github.com/swaywm/sway/issues/7077
2022-06-01Refuse to start when SUID is detectedFurkan Sahin-2/+0
This ensures that those surprised by the deprecation of SUID operation receive an error rather than accidentally having sway run as root. This detection will be removed in a future release.
2022-04-23sway: add bindgesture commandFurkan Sahin-3/+161
Co-authored-by: Michael Weiser <michael.weiser@gmx.de>
2022-05-27xdg-shell: schedule a configure on maximize requestFurkan Sahin-0/+1
This commit reverts 03879290dbee26127f6867ef60bc2a7f9a6c8c5f and fc84bcb7fb0ffa29b1f9bed287762241a3473803.
2022-05-13realtime: request SCHED_RR using CAP_SYS_NICEFurkan Sahin-0/+2
Try to gain SCHED_RR (round-robin) realtime scheduling privileges before starting the server. This requires CAP_SYS_NICE on Linux systems. We additionally register a pthread_atfork callback which resets the scheduling class back to SCHED_OTHER (the Linux system default). Due to CAP_SYS_NICE, setting RLIMIT_RTPRIO has no effect on the process as documented within man 7 sched (from Linux): Privileged (CAP_SYS_NICE) threads ignore the RLIMIT_RTPRIO limit; as with older kernels, they can make arbitrary changes to scheduling policy and priority. See getrlimit(2) for further information on RLIMIT_RTPRIO Note that this requires the sway distribution packagers to set the CAP_SYS_NICE capability on the sway binary. Supersedes #6992
2020-01-25config: Remove unused mouse binding structureFurkan Sahin-9/+1
Mouse bindings are handled alongside normal bindings. Remove the unused separate data structure definition to avoid confusion. Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
2022-03-08Implement ext-session-lock-v1Furkan Sahin-0/+19
2022-03-09sway/input: follow up wlroots input device events renamingFurkan Sahin-3/+3
2022-02-28swaynag: allocate button_details with detailsFurkan Sahin-1/+1
They are used together, so it doesn't make sense to allocate them separately.
2022-03-14swaybar: remove swaybar_output.input_regionFurkan Sahin-1/+0
No need to keep the region around, we can immediately destroy it after the wl_surface.set_input_region request.
2022-03-12Replace pcre with pcre2Furkan Sahin-3/+4
Closes: https://github.com/swaywm/sway/issues/6838
2022-03-08Remove WLR_SWITCH_STATE_TOGGLE usageFurkan Sahin-1/+7
Ref [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/4792446ee8f50104bd207d9ccd8558a7e4eb4514
2022-02-21Remove some erroneous apostrophes in commentsFurkan Sahin-1/+1
2022-02-07xdg-shell: use wlr_xdg_popup in sway_xdg_popupFurkan Sahin-1/+1
Improved type safety.
2022-02-07xdg-shell: use wlr_xdg_toplevel in sway_viewFurkan Sahin-1/+1
Improved type safety. Closes: https://github.com/swaywm/sway/issues/6813
2022-01-17xwayland: listen to `request_activate` eventFurkan Sahin-0/+1
When REAPER submenu is closed `XCB_CLIENT_MESSAGE` with type `NET_ACTIVE_WINDOW` is sent to set focus to parent menu. Closes: https://github.com/swaywm/sway/issues/6324
2022-01-19input/cursor: pass through pointer hold gesturesFurkan Sahin-0/+2
This just follows swaywm/wlroots#3047, so `wl_pointer_gestures_v1` clients can be notified of these events.
2022-01-13Upgrade for wlroots surface refactoringFurkan Sahin-7/+7
See [1] for details. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3412
2021-12-23Destroy sub-surfaces with parent layer-shell surfaceFurkan Sahin-0/+3
Closes: https://github.com/swaywm/sway/issues/6337
2021-10-24output: change output::destroy to output::disableFurkan Sahin-1/+1
This changes output::destroy to output::disable and emits it only once when an output is disabled, instead of twice in succession.
2021-12-13swaynag: remove xdg-output logicFurkan Sahin-3/+0
We can just get the output name from wl_output directly, now that wl_output version 4 exists.
2021-06-07Add support for linux-dmabuf surface hintsFurkan Sahin-0/+2
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/1376
2021-12-10Add focused_tab_titleFurkan Sahin-0/+6
2021-10-04sway: replace noop_output by fallback_outputFurkan Sahin-2/+1
wlroots removed the support for the noop backend. Instead we rely on the headless backend to provide the fallback output.