fix F11 screen toggling

This commit is contained in:
NunoSempere 2023-12-29 18:37:50 +01:00
parent f2535db66f
commit 6ed0181a0c
5 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STYLE_N 6894 + 1000
#define STYLE_N 7127 + 1000
void read_style_js(char* string)
{

View File

@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
#define STYLE_N 6894 + 1000
#define STYLE_N 7127 + 1000
void read_style_js(char* string);

View File

@ -127,6 +127,15 @@ if (document.domain == "twitter.com") {
background-color: inherit !important;
transition: none !important;
}
/* Hide go to top button */
[aria-label^="New posts are available. Push the period key to go to the them."]{
display: none;
}
/* No transparency at the top */
[aria-live^="polite"]{
background: white !important;
}
`;

BIN
rose

Binary file not shown.

2
rose.c
View File

@ -412,7 +412,7 @@ int keypress(void* self, GdkEvent* e, GtkNotebook* notebook)
(void)self;
for (int i = 0; i < sizeof(keys) / sizeof(keys[0]); i++)
if (e->key.keyval == keys[i].key && e->key.state == keys[i].mod)
if (e->key.keyval == keys[i].key && (e->key.state == keys[i].mod || keys[i].mod == 0x0))
return handle_key(keys[i].id, notebook);
return 0;