Screenshot: Move filesystem I/O to a thread
Writting the screenshot to a file can take a relativly long time in which we block the compositor, so do that part in a separate thread to avoid the hang. https://bugzilla.gnome.org/show_bug.cgi?id=652952
This commit is contained in:
@ -156,9 +156,10 @@ void shell_global_screenshot_area (ShellGlobal *global,
|
||||
const char *filename,
|
||||
ShellGlobalScreenshotCallback callback);
|
||||
|
||||
gboolean shell_global_screenshot_window (ShellGlobal *global,
|
||||
void shell_global_screenshot_window (ShellGlobal *global,
|
||||
gboolean include_frame,
|
||||
const char *filename);
|
||||
const char *filename,
|
||||
ShellGlobalScreenshotCallback callback);
|
||||
|
||||
void shell_global_screenshot (ShellGlobal *global,
|
||||
const char *filename,
|
||||
|
Reference in New Issue
Block a user