Commit Graph

1179 Commits

Author SHA1 Message Date
Leo
b7139add23
WindowClone: Don't calculate offset (#1567) 2023-03-19 13:16:44 +09:00
Leo
99be1ad223
Meson: Always add DwellClickTimer and PointerLocator (#1568) 2023-03-08 20:26:53 +09:00
Leo
0230b5bdac
Unify move to workspace behaviour (#1562)
Also fixes a bug where trying to move window to non-existing workspaces resulted it stuck to top when switching workspace afterwards.

Resolves #1081
2023-02-28 14:03:25 +01:00
Leo
3c98ecac06
DragDropAction: Activate click signal on release (#1560) 2023-02-21 21:24:01 -08:00
Leo
b3e5d7af28
Cleanup after #1557 (#1559) 2023-02-22 05:09:04 +00:00
Leo
8fa6f8a550
IconGroup: Make close button respect animations key (#1554) 2023-02-21 21:06:02 -08:00
Leo
10e5a6dfde
WindowClone: Make close button and title respect animations key (#1551) 2023-02-21 11:10:11 -08:00
Leo
4e00b82dd7
Remove some deprecations and fix compile warnings (#1544) 2023-02-21 19:05:43 +00:00
Leo
d0abb9c0e7
Fix window maximize and unmaximize animations (#1557) 2023-02-21 10:57:33 -08:00
Bobby Rong
6ab08256e0
build: require mutter 42 (#1496) 2023-02-21 13:29:21 +09:00
Leo
50bc99a5ee
WindowOverview: Cleanup (#1548) 2023-02-20 16:42:05 +09:00
Leo
9443686190
WindowClone: Fix warnings in window overview (#1549) 2023-02-19 20:07:30 +09:00
Leo
1ca12ac212
Fix multitasking view animations (#1529) 2023-02-18 10:20:08 -08:00
Leo
7b8f13f76f
WindowClone: Add click action only in overview mode (#1542) 2023-02-18 10:14:33 -08:00
Leo
e212898742
Always use private keyword (#1543)
Co-authored-by: Danielle Foré <danielle@elementary.io>
2023-02-18 17:32:32 +00:00
David Hewitt
75a008fe40
Dialogs: Improve force quit string (#1540) 2023-02-17 15:17:18 -08:00
lenemter
c69171b5c6 Fix indentation 2023-02-12 14:13:20 +01:00
lenemter
9d3adf507e Use explicit Clutter and Meta namespaces 2023-02-12 14:13:20 +01:00
Leo
c917c6efba
Allow zoom keybindings in multitasking view (#1535) 2023-02-11 08:24:16 -08:00
Leo
3652e9b5fd
WorkspaceInsertThumb: Code style fixes (#1533) 2023-02-10 08:22:37 -08:00
Leo
a1780c9623
Extend list of allowed keybindings in multitasking view (#1530) 2023-02-09 16:16:19 +00:00
Leo
5631c6bea3
WindowClone: Cleanup (#1532) 2023-02-09 08:11:46 -08:00
Leo
25d995079e
WindowClone: Remove custom WindowShadowEffect class (#1531) 2023-02-09 21:20:13 +09:00
Leo
5bdfd5a1f2
ShadowEffect: inline namespace, copy to PIP (#1520) 2023-02-06 12:35:06 +09:00
Leo
bef947e1b9
Better super key filter in multitasking view (#1523)
Co-authored-by: Ryan Kornheisl <ryan@skarva.tech>
2023-02-05 14:01:09 +09:00
Leo
40c7b5b4ca
Fix IconGroup close button animation (#1522) 2023-02-05 13:57:44 +09:00
Gustavo Marques
05dceba10d
WindowManager: confirm_display_change() fixes
The value of 30 seconds here is wrong, and the dialog was outliving the timeout
used by mutter internally. instead of hardcoding the right values here too, use
the mutter provided function to query the real timeout.

also, make AccessDialog.show() base handler run first than signal callbacks,
and that we only call AccesDialog.close() when we don't receive a response.
2023-01-19 10:56:59 +00:00
Gustavo Marques
4bf55e76db Dialogs: remove dbus timeout from AccessDialog call
we don't want the calls to the portal to be timed out before the user sent a
response, so disable the timeout.

while here, fix a issue with the show() call in the CloseDialog class creating
new dialogs even when a dialog is already open, also handle the portal response
only in the AccessDialog base class and use a protected method to convert
between portal and close dialog responses.

fixes https://github.com/elementary/gala/issues/1505
2023-01-19 11:55:32 +01:00
lenemter
0cf4429676 Allow KeyBindingAction.NONE in Multitasking View 2023-01-15 12:23:40 +01:00
Leo
223fdb0135
WindowClone: Fix shadows (#1503)
Co-authored-by: Ryan Kornheisl <ryan@skarva.tech>
2023-01-15 00:40:10 -05:00
lenemter
0d8a4a87af Fix workspace switching in multitasking view 2022-12-25 10:36:21 +01:00
Gran PC
2d43311d7e
Improve multitasking view animation performance (#1498) 2022-12-24 19:45:55 +09:00
lenemter
45126e4c2d Fixes 2022-12-22 11:45:23 +01:00
lenemter
0121541fca Update src/Zoom.vala
Co-authored-by: Corentin Noël <tintou@noel.tf>
2022-12-22 11:45:23 +01:00
lenemter
49d3ddae5b Remove space 2022-12-22 11:45:23 +01:00
lenemter
b9c5c9c79a Fix zoom 2022-12-22 11:45:23 +01:00
Sergey Zolotarev
1487660812 Don't reconfigure hot corners on monitors_changed event when there are no monitors 2022-12-22 11:40:57 +01:00
Gran PC
c175d2662d
Fix awkward two-finger scroll in multitasking view (#1499) 2022-12-22 01:07:42 +09:00
Gran PC
34a208e26d
ShadowEffect: let Clutter know the shadow's size (#1500)
Seems to stop shadows from lingering around. Fixes #1443, hopefully.
2022-12-22 00:44:58 +09:00
Gran PC
8842e576e3
Temporary workaround for crash when a notification expires while we are switching workspaces (#1497) 2022-12-02 00:56:28 -05:00
lenemter
2c6aa503b6
Reload animated wallpapers when timezone changes (#1461) 2022-11-14 23:17:02 -05:00
Corentin Noël
7c540a2a06
App: Implement Applications Management (#1241)
This allows us to completely replace libbamf in some specific cases (like system shell elements)

Co-authored-by: Danielle Foré <danielle@elementary.io>
2022-10-10 17:47:37 -07:00
Corentin Noël
2743c44285
WindowClone: Make sure that the clone is setup before using it (#1470) 2022-10-10 17:05:16 -07:00
David Hewitt
47c4e8346b
DnD: Stop using captured_event in Mutter 42 (#1468) 2022-10-06 13:32:04 -07:00
David Hewitt
a12c1a1c47
Don't animate workspaces behind multitasking view (#1466) 2022-10-05 09:09:18 -07:00
lenemter
16492b1f71
Option to dim wallpapers when dark style is active (#1462) 2022-09-26 22:30:09 +00:00
Corentin Noël
d9ebac365c
WindowClone: Always add the click action (#1464)
We always want to listen to the click signal.
2022-09-26 23:22:56 +01:00
David Hewitt
23c7edeb0e
Fix multitasking view allocation assertions (#1463) 2022-09-26 14:07:24 -07:00
Corentin Noël
40bd02c621 Update to latest mutter-11 changes
Add upstream sealed classes
2022-09-23 11:34:38 +02:00
Corentin Noël
6764d35239
DBusAccelerator: Use the same version as in the greeter (#1437)
Allows to keep in memory the intend of an accelerator.

Co-authored-by: Jeremy Wootten <jeremy@elementaryos.org>
2022-07-13 16:25:31 +01:00
Danielle Foré
28954a6953
Dialogs: use computer-fail for force quit dialog (#1432) 2022-06-09 21:14:15 +00:00
Danielle Foré
14cdefed9d
WindowClone: explicit namespace, make internal classes private (#1433) 2022-05-24 21:42:48 +00:00
Danielle Foré
87547ef50f
WindowManager: set workspace switch duration directly (#1429) 2022-05-24 08:48:28 -07:00
Danielle Foré
1f94db16c6
WindowManager: save/restore easing on workspace switch (#1430) 2022-05-23 19:11:51 -07:00
Josh Mars
f09b95c564
hotcorners: Add a minimum time delay between trigger and re-trigger events(#1421) 2022-05-22 19:09:14 +00:00
José Expósito
f74d8fdad5
Granite drawing removals (#1428)
* Drawing: Migrate functions removed from Granite 7

Some drawing utilities used by Gala were removed from Granite 7:
https://github.com/elementary/granite/pull/603

Add them to Gala.

* Drawing: Use drawings functions from Gala instead of Granite
2022-05-22 18:02:45 +00:00
Danielle Foré
fc838d7add
MultitaskingView: Remove key_focus_out override (#1418) 2022-05-16 08:07:39 +00:00
Danielle Foré
890f78d7f9
WorkspaceClone: draw stroke with Cairo (#1419) 2022-05-14 14:15:46 -07:00
Vishal Rao
e0095415cd
Fix initial alt-tab switcher indicator visibility. (#1417) 2022-05-12 12:16:38 -07:00
David Hewitt
e86a9518c2
Move screenshot shortcuts in-house (#1411) 2022-04-23 15:26:40 -07:00
David Hewitt
1e223b3027
Move panel-main-menu schema in house (#1409) 2022-04-22 18:00:27 +02:00
Vishal Rao
f9008e4f7a
WindowSwitcher: Fix missing focus on selected window upon release key with Mutter 42 (#1408) 2022-04-22 13:41:30 +02:00
Corentin Noël
9641704ec7
Use Clutter.Grab with Mutter 42 (#1407) 2022-04-21 15:33:24 -07:00
Corentin Noël
60861a4c70
Update to latest mutter bindings and use Transition objects (#1406)
This allows for a better transition handling than setting properties.
2022-04-21 15:28:36 -07:00
José Expósito
268a1976df Tooltip: Remove text size workaround for Mutter 10
Previous to Mutter 10 it was necessary to set the text size to large in
order to avoid displaying a tiny text in a Clutter.Text.

With Mutter 10, the default text size matches the system font size and
the workaround is no longer necessary.
2022-04-12 21:26:51 +00:00
Gustavo Marques
f0916a669b
Dialogs: add CloseDialog (#1340) 2022-04-07 09:29:59 -07:00
Jeremy Wootten
7a13e044bb
Fix compile warnings (#1384)
* Fix GObject property warnings

* Fix hiding set_size function

* Fix duration type conversion

* Fix faulty conflict resolution

* Do not clamp duration

* Reduce indentation

* Return unowned region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned custom region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned keybinding filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned Xrectangle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Codestyle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var custom_region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>
2022-04-05 10:01:39 +00:00
David Hewitt
edc3bfd09f
Allow super key in multitasking view (#1393) 2022-03-30 11:49:25 +00:00
Jeremy Wootten
e3a9953607 Remove redundant test 2022-03-10 20:09:55 +01:00
Corentin Noël
cdcb87afcb Update bindings to latest Mutter
Update to mutter 42.beta
2022-03-10 11:20:47 +00:00
José Expósito
1a2109e571 WindowClone: Remove Granite.CloseButtonPosition
The API Granite.CloseButtonPosition has been deprecated [1].

Remove it from Gala and use Mutter's API to get the close button
position.

[1] https://github.com/elementary/granite/pull/568
2022-01-23 10:12:24 +01:00
Corentin Noël
7ce7414132 Add support for Mutter 42 2022-01-18 15:26:24 +01:00
Tom Beckmann
e43ae576ca fix workspace clone not resizing on monitor geometry changes 2021-12-27 08:47:05 +01:00
Tom Beckmann
26ebdae58a some windows may report null for their titles, catch that case when assigning tooltips 2021-12-27 08:47:05 +01:00
Tom Beckmann
33cd59742f fix segfault if portal could not be acquired 2021-12-27 08:47:05 +01:00
Tom Beckmann
8a433d7030 opacity transition on WindowIcons can be null on WM startup 2021-12-27 08:47:05 +01:00
Jack Gleeson
eb70d6dbba
Always subtract from nat_width the scaled padding over children count (#1336)
This fixes an off-by-one adjacent error that left the indicator off by
an amount based on the scale factor times the children.

Co-authored-by: José Expósito <jose.exposito89@gmail.com>
2021-12-12 19:00:47 +00:00
Tom Beckmann
962accdf1a
switcher: fix container staying reactive in scene
Fix #1322
2021-12-12 18:50:34 +00:00
Danielle Foré
a1fc426b42
WindowManager: Rewrite display settings labels (#1329) 2021-12-01 22:39:54 +00:00
Gustavo Marques
e1f3a15102
Dialogs: add AccessDialog class (#1327) 2021-12-01 22:28:52 +00:00
José Expósito
cce53acffe WindowSwitcher: Clear indicator background
Since 0c64b60729 the window switcher
indicator shows artifacts as background.

Clear it before painting to make sure the background is properly
displayed.
2021-11-29 11:37:55 +01:00
José Expósito
92d3a735e5 WindowSwitcher: Follow accent color
Repaint the window switcher indicator when the accent color changes.

Fix #1316
2021-11-28 11:50:12 -07:00
Corentin Noël
cc83db8fe3 WindowSwitcher: Simplify the window indicator by handling directly its content
Remove the RoundedActor class.
2021-11-25 13:40:24 +01:00
luzpaz
faac78782c
Fix various typos (#1310)
* Fix various typos

Found via `codespell -q 3 -S *.po`

* Fix deamon->daemon

Co-authored-by: Jeremy Wootten <jeremy@elementaryos.org>
2021-11-20 16:56:53 +00:00
Danielle Foré
6b65615de4
WindowManager: don't type check when undim (#1304) 2021-11-18 14:58:02 -08:00
Danielle Foré
9d416f6b26 Update src/Widgets/WindowClone.vala
Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2021-11-16 23:50:30 +01:00
Danielle Foré
c544da1364 WindowClone: Include spread in bounding box 2021-11-16 23:50:30 +01:00
Danielle Foré
869aa70cfe
Tooltip: get text color from style context (#1295)
* Tooltip: get text color from style context

* cache the math
2021-11-10 07:27:45 +01:00
Danielle Foré
1e3a7c171a
WindowManager: dialogs fall down (#1297)
* WindowManager: dialogs fall down

* Update gala.appdata.xml.in

Co-authored-by: José Expósito <jose.exposito89@gmail.com>
2021-11-07 02:36:25 +01:00
Danielle Foré
e1bd8bc306
WindowManager: explicitly dim and undim (#1298) 2021-11-06 15:39:31 -07:00
Danielle Foré
336332f4e7
Remove DockThemeManager (#1294) 2021-11-06 18:17:57 +00:00
Danielle Foré
ebfa8ea45d
Tooltip: null check text_actor before removing (#1293) 2021-11-06 17:59:39 +00:00
Danielle Foré
de1b897bab
WindowManager: dim parents of modals (#1285) 2021-11-06 17:00:51 +00:00
Danielle Foré
65da8f7767 MultitaskingView: don't set custom easing mode 2021-11-06 10:08:05 +01:00
Danielle Foré
e5523a2afb IconGroupContainer: add null check to get_next_sibling 2021-11-06 10:02:49 +01:00
Corentin Noël
9d6f980d19 Handle signal to close Gala gracefully on Mutter 3.41
Closes #1258
2021-11-06 09:57:26 +01:00
Danielle Foré
72869e0e34
WindowManager: handle empty action keys (#1290) 2021-11-05 16:37:25 -07:00
Felix Andreas
4eeaca579b open WindowSwitcher on current monitor 2021-11-05 10:30:05 +01:00
José Expósito
2fbe184042
multitasking: Show nudge animation only on the primary display (#1275)
When the multitasking view is opened and a the keyboard shortcuts are
used to switch between workspaces, avoid showing the nudge/bump
animation on the non-primary display.

Partially address #927
2021-11-03 19:09:57 +00:00
David Hewitt
52cbc3cc7b
Bring "Catts" in-tree (#1234) 2021-11-02 11:56:54 -07:00
José Expósito
a682b59ae6
multitasking: Enable bump animation for mouse scroll (#1270) 2021-10-27 16:13:03 -07:00
José Expósito
d2dcfdefdf
multitasking: Don't use smooth scroll events to handle mouse wheel (#1266)
Instead of relying on a magic value to know detect mouse wheel "clicks"
use the discrete events sent by Mutter.

This will avoid breaking the multitasking scroll once
xf86-input-libinput 1.2.0 lands in Ubuntu with high-resolution scroll
wheel support.
2021-10-09 20:52:30 +00:00
David Hewitt
d425959aa2
Add systemd units (#1256) 2021-09-29 18:51:50 +00:00
Bobby Rong
fe45c2d07e Fix session crash when taking screenshots with mutter 3.38 2021-09-29 09:39:32 +02:00
José Expósito
49e20812ed background: Fix crash changing wallpaper
Fix a regression changing the wallpaper introduced in
4aec79ae0d

The lambda function wasn't capturing the value of "i". Instead,
"OPTIONS.length" was always used.
2021-09-10 09:16:09 +02:00
Corentin Noël
78abc34aca Do not use color properties directly
They are being copied when retrieving as they are simple structs.
2021-09-10 08:00:04 +02:00
Daniel Foré
5f26f2fd0c Tooltip: render from stylecontext 2021-09-08 14:17:33 -06:00
José Expósito
e2b86b2392 hot corners: Pressure corner to trigger
In order to avoid accidental triggers, don't trigger the hot corner
until a given threshold is reached.

Fix #1100
2021-09-01 08:55:14 +02:00
José Expósito
2eb419ea88 hot corners: Pressure corner to trigger again
When the mouse pointer pressures the hot corner after activation,
trigger the action again when a given threshold is reached without
requiring  to leave and enter the hot corner again.

Fix #1078
2021-09-01 08:55:14 +02:00
José Expósito
c483cbe663 hot corners: Release the barrier after pressure
When the mouse pointer pressures the barrier without activating the hot
corner, release it when a given threshold is reached.
2021-09-01 08:55:14 +02:00
José Expósito
0696ede909 hot corners: Use barriers
Use Meta.Barrier to implement the hot corner functionality instead of
using a Clutter.Actor.

This approach makes easier to trigger the hot corner in multi-monitor
setups and avoids capturing events accidentally.

Fix #719
Fix #1054
2021-09-01 08:55:14 +02:00
José Expósito
a5f32b3331 hot corners: Refactor hot corners
Move the hot corners code from the WindowManager to its own class.

Refator, no functional changes.
2021-09-01 08:55:14 +02:00
Corentin Noël
9a137bd707 Add initial support for Mutter 41 2021-08-30 17:47:55 +02:00
Corentin Noël
737b960ed5 MediaFeedback: Simplify the handling of the notification bus
Simply send notifications if the daemon is currently running.
2021-08-19 07:25:00 +00:00
Corentin Noël
bb0ee8ebbf IconGroup: Resize the canvas after objects creations
Resize is then calling draw which requires icon_container to exist.
2021-08-19 07:09:18 +00:00
Corentin Noël
4aec79ae0d Reduce the number of warnings
No functional change.
2021-08-18 05:49:00 +00:00
Corentin Noël
87d51c50fb
Add initial support for Mutter 40 (#980) 2021-08-16 16:23:46 -06:00
Bobby Rong
605aa10ea2 l10n: Correctly setup the locales 2021-08-16 09:01:01 +02:00
José Expósito
af59aa680b
screenshot: Include server side decorations (#1194) 2021-08-11 15:51:09 +00:00
José Expósito
866d82ac75 screenshot: Play shutter sound
We currently rely on Screenshot to play the shutter sound. This means
that it needs pulseaudio permissions in Flatpak and depending on the app
taking the screenshot you might not get a sound when a screenshot is
taken.

In addition, no sound was played when a screenshot was copied directly
to the clipboard.

Play the shutter sound in Gala to avoid this problems.
2021-06-30 08:45:55 +02:00
José Expósito
491b3cc6e5 Screenshot: Save to clipboard using shortcuts
Allow to save screenshot to clipboard when the filename received is
empty.

Not changing the save_image_to_file to keep backward compatibility.

Fix #1137
2021-06-17 10:51:11 -06:00
José Expósito
0c9a68aa8b Screenshot: Refactor ScreenshotManager.save_image
In previous versions of GNOME Settings daemon (elementary OS <= 5),
saving to clipboard was handled by the daemon. The daemon used to
request Gala to save the screenshot in a temp path like
"/tmp/gnome-settings-daemon-screenshot-XXXX" and copied the image to
the  clipboard from there.

More information: https://github.com/elementary/gala/issues/474

Now, Gala is in charge of copying to clipboard when the take screenshot
methods receive an empty filename.

This commit: Move the code from save_image to save_image_to_file.
2021-06-17 10:51:11 -06:00
José Expósito
c0506cb99b Multitasking view: Ajust window icon on scaling factor change 2021-06-17 10:19:43 -06:00
José Expósito
4be64574c0 Multitasking view: Ajust close window button on scaling factor change 2021-06-17 10:19:43 -06:00
José Expósito
afa6d6bd43 Multitasking view: Do not reuse scaling factor
The scaling factor can change at any point, but the WindowClone was
saving a value calculated in the constructor, creating several bugs when
scaling was changed.

Remove that pre-calculated value and use always a fresh value.
2021-06-17 10:19:43 -06:00
Jeremy Wootten
8d3bbc7635 Fix lint error in src/InternalUtils.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
bef79790a6 Fix lint errors in src/WindowManager.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
25c83a2dde Fix lint errors in src/Background/BackgroundSource.vala & src/Widgets/Screenshield.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
6d025daa69 Fix lint error in src/Widgets/WindowCLone.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
3101cafbb2 Fix lint error in src/Widgets/WorkspaceClone.vala 2021-06-15 13:50:50 -06:00
Jeremy Wootten
eaa05aeb68 Fix lint errors in /src/DBus.vala 2021-06-15 13:50:50 -06:00
José Expósito
11643da1e5
a11y: Delay dwell click timer animation (#1156) 2021-06-04 09:00:42 -07:00
José Expósito
29cd5ad361 IconGroupContainer: Force re-layout
To avoid visual glitches when the scaling factor is changed, re-layout
the IconGroupContainer before the multitasking view is opened.
2021-06-04 09:57:24 -06:00
José Expósito
218cf00402 WindowIconActor: Resize on scalling factor change
To avoid visual glitches when the scaling factor is change, take
scalling factor into account to resize the icon.
2021-06-04 09:57:24 -06:00
José Expósito
f02019fd76 IconGroup: Resize the close button on redraw
To avoid visual glitches when the scaling factor is changed, adjust the
close button size on redraw to make sure the current scale factor is
used.
2021-06-04 09:57:24 -06:00
José Expósito
a7fb5107fe IconGroup: Refactor the close button placement
Move the code to place the IconGroup close button to a funtion to be
able to reuse it.

Refactor, no functional changes.
2021-06-04 09:57:24 -06:00
José Expósito
d993d095c1 IconGroup: Resize the canvas on redraw
To avoid visual glitches when the scaling factor is change, adjust the
canvas size on redraw to make sure the current scale factor is used.
2021-06-04 09:57:24 -06:00
José Expósito
ab351ea321 IconGroup: Refactor the canvas resize logic
Move the code to resize the IconGroup canvas to a funtion to be able to
reuse it.

Refactor, no functional changes.
2021-06-04 09:57:24 -06:00
José Expósito
55b34dd5eb
Fix #1131: Multitasking view: Keyboard focus highlight should use accent color (#1133) 2021-05-18 11:59:14 -07:00
José Expósito
16c112ccef
Multitasking view: Animate the dock when small size is selected (#1138) 2021-05-18 11:55:01 -07:00
José Expósito
ef536fa014
multitasking-view: Keyboard navigation rounded highlight (#1130) 2021-05-09 10:11:58 -07:00
Marius Meisenzahl
915712865d
Set accent color based on primary color (#1124) 2021-05-03 10:58:30 -07:00
Marius Meisenzahl
5cf9308ca6
Set accent color based on wallpaper (#1104)
* Add libgexiv2-dev as dependency

* Add classes

* Add demo

* Fix signal

* Cleanup

* Use Granite.Settings

* Revert "Use Granite.Settings"

This reverts commit a2da4bbbdb.

* Sort dependencies alphabetically

* Cleanup class NamedColor

* Read color from Gtk theme

* Cleanup
2021-04-29 16:36:59 -06:00
José Expósito
3449bef59a
Fix #1112: Adjust gap between notification bubbles (#1115) 2021-04-25 10:50:34 -07:00
Daniel Foré
dab8325b94
Rewrite gesture schemas (#1108) 2021-04-21 08:42:56 -07:00
David Hewitt
9f6b6a35c3
Minor screen shield fixes (#1111) 2021-04-13 17:27:19 +02:00
Daniel Foré
3846d120df
InternalUtils: Remoev unused constants (#1103) 2021-04-06 11:30:02 -07:00
JoseExposito
476c767bb6 Follow animation settings on zoom gesture 2021-04-06 10:26:46 -07:00
JoseExposito
d96322d9b8 Follow animation settings on zoom shortcut 2021-04-06 10:26:46 -07:00
Daniel Foré
8f92acba3a
InternalUtils: manually build label width path (#1102) 2021-04-06 09:26:03 -07:00
José Expósito
ac8a21e990
Show window titles in Multitasking View (#1076) 2021-04-05 18:19:52 -07:00
JoseExposito
3916d058c9 Make multitasking view nudge animation movement match workspace animation movement 2021-04-05 10:08:10 -07:00
JoseExposito
aec4f89c42 Make nudge animation movement match workspace animation movement 2021-04-05 10:08:10 -07:00
JoseExposito
585119ee75 Add a util function to get the workspaces geometry following the only_on_primary settings 2021-04-05 10:08:10 -07:00
JoseExposito
afa0b81699 Fix #1029: Zoom using multi-touch gestures 2021-04-02 10:04:00 -07:00
JoseExposito
1e42575351 Add GSettings to configure zoom gesture 2021-04-02 10:04:00 -07:00
JoseExposito
0480c42b95 Refactor the Zoom.zoom method to easily integrate gestures 2021-04-02 10:04:00 -07:00
JoseExposito
854059f44c Move the zoom plugin to the core code 2021-04-02 10:04:00 -07:00
José Expósito
282ee282f8
Fix #509: Follow animation settings in the workspace nudge animation (#1088) 2021-03-31 09:21:37 +02:00
José Expósito
92bc6b8a1e
Fix #1074: Window menu says Unmaximize when tiled (#1087) 2021-03-29 13:39:11 +02:00
Jeremy Wootten
0d43e6de20
Ignore ibus type source when setting keymap (#1041)
Co-authored-by: Ryo Nakano <26003928+ryonakano@users.noreply.github.com>
2021-03-14 11:47:15 +00:00
José Expósito
ed77206168
Fix #955: Add Take Screenshot to the header context menu (#1068) 2021-03-05 07:48:28 +01:00
José Expósito
702e31825d
Do not recalculate the multitasking view layout when a window not present in that layout is removed (#1072) 2021-03-02 10:02:05 -08:00
JoseExposito
c617f2e374 Remove old code 2021-03-01 10:25:46 -08:00
JoseExposito
5bba638ccf Multitasking view animation use GestureTracker 2021-03-01 10:25:46 -08:00
JoseExposito
104f819e76 Switch workspace animation use GestureTracker 2021-03-01 10:25:46 -08:00
JoseExposito
ef3285ce9c Enable 3/4 finger swipes in the multitasking view 2021-03-01 10:25:46 -08:00
JoseExposito
a1cb337880 Add a Touchégg as a backend of the GestureTracker 2021-03-01 10:25:46 -08:00
José Expósito
0913f46c7c
Fix #1027: Plank appears on background when switching from fullscreen workspace (#1037)
Co-authored-by: Daniel Foré <daniel@elementary.io>
2021-02-23 16:02:54 -08:00
José Expósito
3a0c856d7a
Multitasking view 1:1 switch desktop animation with scroll events (#1051) 2021-02-22 16:34:43 -08:00
José Expósito
590f0c6b68
Faster animation when using keyboard shortcuts (#1048) 2021-02-16 12:54:26 -08:00
José Expósito
48fd09e895
Fix #1018: Align multi-touch animations to physical pixels (#1023)
* Fix #1018: Align multi-touch animations to physical pixels

* Add documentation for GestureAnimationDirector.animation_value

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2021-02-04 16:25:44 -08:00
Felipe Escoto
746b089803
Don't move to next workspace when maximizing a window on secondary monitor (#1033) 2021-02-02 12:13:09 -08:00
José Expósito
1b152c1d1b
Multi-touch gestures aren't pixel-precise at low speeds + D-Bus (#1017) 2021-02-02 12:05:50 -08:00
David Hewitt
8ec131223b
Calculate notification width dynamically (#1039) 2021-02-02 11:55:14 -08:00
José Expósito
29b304c508
Fix #1001: Grey backdrop after switching workspace via gestures (#1024) 2021-01-23 10:27:45 +01:00
David Hewitt
5784505020
ScreenShield: Use async versions of Bus.get_proxy (#1020) 2021-01-16 20:34:06 +01:00
José Expósito
49d35796d0
#989: Multi-touch gestures have no upper speed limit (#1006)
* Initial test

* #989: Add maximum velocity to gesture update

* Simplify the GestureAnimationDirector moving the min/max times to the constructor

* Fix merge conflict

* Revert change
2021-01-06 14:15:06 -08:00
Corentin Noël
c74298b49c Bump Mutter to 3.36 2021-01-04 13:33:03 -08:00
Corentin Noël
f89686af61 Bump Mutter to 3.34 2021-01-04 13:33:03 -08:00
Corentin Noël
e46f9e9ca9 Bump Mutter to 3.32 2021-01-04 13:33:03 -08:00
Corentin Noël
57c3608c51 Bump Mutter to 3.30 2021-01-04 13:33:03 -08:00
José Expósito
9aee122c18
Workspaces in multitasking view should not animate as if they are stacked (#1002) 2020-12-29 14:07:44 -08:00
José Expósito
0d0d4a5fd3
Background disappears while switching workspaces with multiple displays (#994)
* Fix #926: Background disappears while switching workspaces with multiple displays

* #926: Adjust Y when monitors have different size

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
2020-12-22 11:05:14 -07:00
Felix Andreas
813abb7ea6
WindowManager: use accent color for tiling preview (#960) 2020-12-21 13:22:53 -08:00
José Expósito
fd98933ed1
Fix #991: Add a gap between workspaces when swiping/navigating (#996) 2020-12-21 09:44:17 -08:00
José Expósito
933ca7bf7f
Multi-touch support (#983) 2020-12-16 13:04:52 -08:00
Corentin Noël
381e1d6474
Initial support for mutter-7 (#854)
* meson: Add support for libmutter-7 in the build system

This commit only adds support within the build system, no further attempt to make it build has been tried.

* mutter: Update the .vapi for libmutter-7

* Fix vapi syntax

* Make it work with mutter-7

* Re-enable PIP plugin

* Fix screenshot code

* Fix type

* Cleanup workspaces sooner

So we don't see the workspace removed animation on login

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
Co-authored-by: David Hewitt <davidmhewitt@gmail.com>
2020-11-17 12:11:52 +01:00
Felix Andreas
991f3f9ac7
Codestyle: Initialize Objects with Properites (#965) 2020-11-12 10:38:59 +00:00
David Hewitt
dd21895437
pip: Use DragDropAction for move (#959) 2020-11-09 10:15:00 +01:00
Julian Raschke
f1be427cc8
Rename 'Minimize' to 'Hide' (#953) 2020-11-03 12:34:59 -08:00
David Hewitt
3755df80b3
Replace BAMF for icon loading (#939)
* Initial work to replace window matching and icon loading

* Support file icons

* Start caching desktop file info, support StartupWMClass

* Remove bamf vapi

* Listen for changes to desktop files

* Rate limit cache updates

* Remove bamf from README

* Pixbuf caching and gapp matching

* Also cache unknown icons

* Get windows from group

* Add a fallback for failing to load icon

* Check sandbox prefixes

* Switch icon cache class to struct
2020-10-27 12:15:57 -06:00
Corentin Noël
8e92cd4e4c
meson: Compare libmutter_dep version instead of checking for mutter336_dep (#949)
Using libmutter_dep allows to have a future-proof checking for this.
2020-10-27 16:00:26 +00:00
WORLDofPEACE
c124a8552d
build: fix build with mutter less than 3.36 (#945) 2020-10-26 11:49:58 +01:00
David Hewitt
c0c8b991ed
InternalUtils: Prevent X11 specific calls on wayland (#938) 2020-10-19 09:28:31 -07:00
Diego Rocha
4e820e9ce7
WindowManager: fixed nudge flicker and improved performance (#930) 2020-10-12 10:09:39 -07:00
Adam Bieńkowski
598ab52023
Also fix destroying (#920) 2020-09-20 15:58:07 -07:00
David Hewitt
8d836e8d69
KeyboardManager: listen to sources gsettings key (#910) 2020-08-27 10:06:16 -07:00
David Hewitt
a00b6257a6
Remove org.freedesktop.ScreenSaver interface (#911) 2020-08-27 10:02:59 -07:00
Daniel Foré
03fae35d74
Set accent color in DwellClick and PointerLocator (#909) 2020-08-26 15:44:01 -07:00