Commit Graph

942 Commits

Author SHA1 Message Date
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