Created
September 10, 2020 15:33
-
-
Save Merlin04/1a7236c1d8bf1d5626535b6800022d74 to your computer and use it in GitHub Desktop.
Patch to phosh shell.c for mobian pinetab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- shell.c.old 2020-09-10 08:24:15.719590683 -0700 | |
+++ shell.c 2020-09-10 07:38:30.969310931 -0700 | |
@@ -647,9 +647,13 @@ | |
current = phosh_monitor_get_rotation (priv->primary_monitor); | |
if (current == degree) | |
return; | |
+gint new_degree = degree; | |
+if(new_degree == 90) { | |
+ new_degree = 270; | |
+} | |
phosh_private_rotate_display (phosh_wayland_get_phosh_private (wl), | |
phosh_layer_surface_get_wl_surface (priv->panel), | |
- degree); | |
+ (guint)new_degree); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment