mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Unset DRI_PRIME as well
This commit is contained in:
@@ -782,9 +782,6 @@ namespace gsr {
|
||||
|
||||
update_compositor_texture(focused_monitor);
|
||||
|
||||
top_bar_text = mgl::Text("GPU Screen Recorder", get_theme().top_bar_font);
|
||||
logo_sprite = mgl::Sprite(&get_theme().logo_texture);
|
||||
|
||||
bg_screenshot_overlay = mgl::Rectangle(mgl::vec2f(get_theme().window_width, get_theme().window_height));
|
||||
top_bar_background = mgl::Rectangle(mgl::vec2f(get_theme().window_width, get_theme().window_height*0.06f).floor());
|
||||
top_bar_text = mgl::Text("GPU Screen Recorder", get_theme().top_bar_font);
|
||||
|
||||
@@ -37,6 +37,7 @@ static void disable_prime_run() {
|
||||
unsetenv("__NV_PRIME_RENDER_OFFLOAD_PROVIDER");
|
||||
unsetenv("__GLX_VENDOR_LIBRARY_NAME");
|
||||
unsetenv("__VK_LAYER_NV_optimus");
|
||||
unsetenv("DRI_PRIME");
|
||||
}
|
||||
|
||||
static std::unique_ptr<gsr::GlobalHotkeysX11> register_x11_hotkeys(gsr::Overlay *overlay) {
|
||||
|
||||
@@ -184,6 +184,7 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_
|
||||
if(event.type == EV_KEY) {
|
||||
keyboard_event_process_key_state_change(self, event, extra_data, fd);
|
||||
|
||||
/* We do this conversion from keycode to keysym back to keycode to support different keyboard layouts in the X server (which Wayland also uses to support Xwayland) */
|
||||
uint32_t keycode = event.code;
|
||||
const uint32_t keysym = keycode_to_keysym(self, event.code);
|
||||
if(keysym)
|
||||
|
||||
Reference in New Issue
Block a user