
When using the NVIDIA driver, textures tend to loose their pixels when suspending. In the past we handled this by figuring out when the NVIDIA driver was used, and reload the background whenever we noticed we resumed from suspend. This shouldn't be needed anymore after https://gitlab.gnome.org/GNOME/mutter/merge_requests/600, as it should handle this by listening to video-memory-purged signal. Thus remove our special handling here. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1358
84 lines
3.7 KiB
C
84 lines
3.7 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef __SHELL_UTIL_H__
|
|
#define __SHELL_UTIL_H__
|
|
|
|
#include <gio/gio.h>
|
|
#include <clutter/clutter.h>
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
#include <meta/meta-cursor-tracker.h>
|
|
#include <meta/meta-window-actor.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void shell_util_set_hidden_from_pick (ClutterActor *actor,
|
|
gboolean hidden);
|
|
|
|
void shell_util_get_transformed_allocation (ClutterActor *actor,
|
|
ClutterActorBox *box);
|
|
|
|
int shell_util_get_week_start (void);
|
|
|
|
const char *shell_util_translate_time_string (const char *str);
|
|
|
|
char *shell_util_regex_escape (const char *str);
|
|
|
|
gboolean shell_write_string_to_stream (GOutputStream *stream,
|
|
const char *str,
|
|
GError **error);
|
|
|
|
char *shell_get_file_contents_utf8_sync (const char *path,
|
|
GError **error);
|
|
|
|
void shell_util_touch_file_async (GFile *file,
|
|
GAsyncReadyCallback callback,
|
|
gpointer user_data);
|
|
gboolean shell_util_touch_file_finish (GFile *file,
|
|
GAsyncResult *res,
|
|
GError **error);
|
|
|
|
gboolean shell_util_wifexited (int status,
|
|
int *exit);
|
|
|
|
GdkPixbuf *shell_util_create_pixbuf_from_data (const guchar *data,
|
|
gsize len,
|
|
GdkColorspace colorspace,
|
|
gboolean has_alpha,
|
|
int bits_per_sample,
|
|
int width,
|
|
int height,
|
|
int rowstride);
|
|
|
|
ClutterContent * shell_util_get_content_for_window_actor (MetaWindowActor *window_actor,
|
|
MetaRectangle *window_rect);
|
|
|
|
cairo_surface_t * shell_util_composite_capture_images (ClutterCapture *captures,
|
|
int n_captures,
|
|
int x,
|
|
int y,
|
|
int target_width,
|
|
int target_height,
|
|
float target_scale);
|
|
|
|
void shell_util_check_cloexec_fds (void);
|
|
|
|
gboolean shell_util_start_systemd_unit (const char *unit,
|
|
const char *mode,
|
|
GError **error);
|
|
gboolean shell_util_stop_systemd_unit (const char *unit,
|
|
const char *mode,
|
|
GError **error);
|
|
|
|
void shell_util_sd_notify (void);
|
|
|
|
gboolean shell_util_has_x11_display_extension (MetaDisplay *display,
|
|
const char *extension);
|
|
|
|
char *shell_util_get_translated_folder_name (const char *name);
|
|
|
|
gint shell_util_get_uid (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __SHELL_UTIL_H__ */
|