Johan Malm
11ff820105
osd: use theme->osd_border_width consistently
2023-06-29 19:14:08 +01:00
Johan Malm
a6f0fc9c62
window-rules: add skipTaskbar and skipWindowSwitcher
2023-05-22 20:37:49 +01:00
Johan Malm
09c1cdd2dc
osd: set field width to ellipsize
2023-04-24 04:25:52 +02:00
Johan Malm
693c5bd937
config: move cycle_* bools to window_switcher struct
2023-04-21 16:05:48 +01:00
Johan Malm
0f37c04df0
config: support window switcher field definitions
...
<windowSwitcher>
<fields>
<field content="type" width="25%" />
<field content="app_id" width="25%" />
<field content="title" width="50%" />
</fields>
</windowSwitcher>
Relates to issues #852 #855 #879
2023-04-21 16:05:48 +01:00
Consolatis
e45fe0804d
followMouse: allow focus switching via A-Tab
...
Fixes a regression caused by the recent enhancement of followMouse behavior.
Fixes : #849
Reported-by: mitigate via IRC
2023-03-26 20:02:04 +01:00
Flrian
00ebcdc290
osd: add config option to disable osd
2023-03-08 21:54:47 +00:00
John Lindgren
6efc6a9db4
output: Add output_is_usable() helper
2023-02-17 06:59:39 -05:00
Consolatis
7e99d8ba08
SnapToRegion: Add overlay while moving and pressing a modifier
2023-01-11 18:52:24 +01:00
bi4k8
ab74d726c6
osd: bookend with calls to cursor_update_focus
...
this updates the cursor if it is within the OSD area when OSD appears
or disappears
2022-12-14 12:29:16 +01:00
bi4k8
4f0b72c341
osd: factor drawing out of osd_update
2022-12-13 21:41:41 +01:00
John Lindgren
4da37c6532
view: Move xdg_surface + xwayland_surface to derived structs
...
Add xdg_surface_from_view() + xwayland_surface_from_view() accessors
that assert() the view is of the expected type before returning.
Fix a real bug in xdg.c parent_of() that dereferenced
`view->xdg_surface->toplevel` without first checking `view->type`.
The goal of the new accessors is to catch similar bugs in future.
2022-11-25 22:21:17 +00:00
John Lindgren
f08e931a29
include: Break out view.h from labwc.h
...
IMHO it encourages better design (by making dependencies more obvious)
to have source file/header file pairs like view.c/view.h, rather than a
monolithic header like labwc.h with everything in it.
I don't think we need to break up all of labwc.h at once, but maybe we
can start pulling it apart bit by bit as it's convenient.
Also:
- Move "struct border" to ssd.h so that view.h can use it without pulling
in all of labwc.h.
- Add a missing required #include within scaled_font_buffer.h (forward
declaration of "struct font" is not enough).
2022-11-21 21:42:37 +00:00
Consolatis
92976f30d0
src/osd.c: Ensure destroying views are not used as preview anchors
2022-09-27 17:35:10 +01:00
Consolatis
c83c1beace
src/osd.c: Prevent showing invalid windows
...
This might happen when closing the last
application "to tray" like VLC, Discord or Steam.
Reported-by: @Flrian
2022-09-27 17:35:10 +01:00
Johan Malm
d424514e24
Fix minor coding-style violations
...
...based on https://github.com/johanmalm/checkpatch.pl
2022-09-22 22:39:44 +01:00
John Lindgren
07a83c19f0
config: Add support for font slant and weight
2022-09-15 21:48:05 +01:00
Consolatis
2550c984f8
Move OSD handler for view destruction to osd.c
2022-08-28 20:40:49 +02:00
Consolatis
ca3c83aafc
src/osd.c: Integrate preview outline into OSD state
2022-08-28 20:40:44 +02:00
Consolatis
15a5b710db
alt-tab preview: restore functionality after move to scene-graph
2022-08-28 20:40:36 +02:00
Consolatis
296e58079f
Prepare OSD for reimplementation of the preview feature
2022-08-28 20:40:29 +02:00
Johan Malm
8a7048fd78
osd: position preview border within SSD max extents
...
This makes the border visible when alt-tabbing maximized windows and
prevents it from rendering on other outputs or on top of exclusive
layer-surfaces such as panels.
Closes issue #496
2022-08-27 16:14:29 +02:00
Flrian
c1490b632d
Add config option to disable preview outlines
2022-08-24 20:21:14 +01:00
John Lindgren
0dba67a41d
osd: Do not show window switcher on disabled outputs
2022-08-21 21:47:45 +01:00
Consolatis
b39020213a
src/osd.c: Add preview outlines
2022-08-20 22:40:31 +01:00
Consolatis
fb36463c34
common/graphic-helpers: Add cairo helpers
2022-08-20 22:16:52 +01:00
Flrian
1eab4b5269
src/osd.c: fix max text width
...
Making sure long window titles don't overflow the selection box
Closes issue #406
Written-by: @johanmalm
2022-06-19 21:03:43 +01:00
Consolatis
8c5157a098
workspaces: Wire up workspaces
2022-06-15 22:26:21 +02:00
Consolatis
1afca2c2cd
src/osd.c: Hide OSD when there are no views on osd_update
2022-06-15 16:14:02 +01:00
Consolatis
505f92e733
src/buffer: Automatically adapt to scale attribute
...
Based on discussion in PR #389
2022-06-14 22:03:08 +01:00
bi4k8
4221eb14e8
correctly scale window switcher
2022-06-11 13:44:58 +00:00
Consolatis
efd9155513
Chase wlroots: children are now only availabe in tree nodes
...
Chases wlroots 71f8a48d380701de1e3331d53d470bd76f5f643b
wlr_scene: Move children list from wlr_scene_node to wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
08518513cc
Chase wlroots: scene_node.state is now inlined
...
Chases wlroots cb2dbc327e4d695c2a60a386e116a7dc20b29107
wlr_scene: Inline wlr_scene_node_state
2022-06-07 07:13:37 +01:00
Consolatis
2ed7a10779
Chase wlroots: every scene_node parent is now a tree
...
Chases wlroots ccd0f85c2a36308e35b153c7f9653abac7659af3
wlr_scene: Only allow parenting on a wlr_scene_tree
2022-06-07 07:13:37 +01:00
Consolatis
b7907cc2da
theme: implement osd.border.color and osd.border.width
...
http://openbox.org/wiki/Help:Themes#osd.border.color
http://openbox.org/wiki/Help:Themes#osd.border.width
2022-06-01 17:55:36 +01:00
Consolatis
ae9314c65e
src/osd.c: Free buf.buf as its malloc'd in buf_init()
2022-05-26 22:19:56 +01:00
Johan Malm
fa37fba0b0
osd: fix compiler warning
2022-04-20 18:08:10 +01:00
Johan Malm
48c9e6fda0
osd: show alt-tab switcher center-aligned on all outputs
...
Fixes issue #283
2022-04-20 17:45:10 +01:00
Johan Malm
5b34c81768
Fix trivial coding style breaches
2022-04-04 20:53:36 +01:00
Consolatis
044388a5cd
Prepare to move from wlr_texture to lab_data_buffer
2022-02-23 21:47:01 +00:00
Johan Malm
f22bfc96b2
buffer: create cairo_t inside buffer_create()
2022-02-23 21:47:01 +00:00
Johan Malm
ba909e4fc7
Refactor buffer implementation to take a cairo_t
...
Remove buffer_drop() and just destroy it.
2022-02-23 21:47:01 +00:00
Johan Malm
4593909744
osd: destroy old osd_tree children
2022-02-23 21:47:01 +00:00
Johan Malm
532656ad5b
Use wlroots scene-graph API
...
Move xdg-shell and xwayland-shell surfaces to new API
Also render alt-tab on-screen-display by converting cairo-surface to
wlr_buffer
2022-02-23 21:46:48 +00:00
ARDiDo
7c437eac2f
OSD: Use separate OSD texture for each output
2022-02-09 21:57:32 +00:00
ARDiDo
049b84409e
OSD: Scale OSD to the largest output scale
2022-02-09 21:57:32 +00:00
bi4k8
4ce96f75dc
osd: fix crash when props are NULL
...
this happened while running Xwayland *over* waypipe, so is likely not a common case, but is possible
2021-12-16 20:42:07 -05:00
ARDiDo
859495a8be
Config: add OSD font configuration
2021-12-06 17:44:28 -05:00
ARDiDo
59af8e0986
OSD: fix segfault when no app_id is set
2021-12-03 16:16:59 -05:00
Johan Malm
806fdb08bd
view: add view_get_string_prop()
2021-10-18 20:01:10 +01:00