# compose-desktop

Henri Gourvest

10/09/2023, 11:45 AM
I've noticed a strange thing with window resizing: it triggers a click if the mouse pointer returns to the window area immediately after releasing the mouse button. I'm running Linux Fedora 38, Gnome Desktop. The problem doesn't occur on Windows.
Copy code
fun App() {
    var text by remember { mutableStateOf("Hello, World!") }

    MaterialTheme {
        Button(onClick = {
            text = "Hello, Desktop!"
        }, modifier = Modifier.fillMaxSize()) {

Alexander Maryanovsky

10/09/2023, 2:56 PM

Henri Gourvest

10/09/2023, 3:32 PM
Thank you. It looks very similar but it's not exactly the same, it's even worse. On MacOs the problem seems to be triggered while the mouse button is pressed down, whereas on linux you have to release the mouse button and immediately move the mouse pointer into the window area. I'm going to add a comment on this issue anyway, as it's probably related.